惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

M
MIT News - Artificial intelligence
H
Help Net Security
GbyAI
GbyAI
酷 壳 – CoolShell
酷 壳 – CoolShell
The GitHub Blog
The GitHub Blog
博客园 - 三生石上(FineUI控件)
T
Troy Hunt's Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Project Zero
Project Zero
PCI Perspectives
PCI Perspectives
B
Blog RSS Feed
G
GRAHAM CLULEY
Recent Announcements
Recent Announcements
Google DeepMind News
Google DeepMind News
雷峰网
雷峰网
Recorded Future
Recorded Future
Know Your Adversary
Know Your Adversary
Attack and Defense Labs
Attack and Defense Labs
C
Cisco Blogs
月光博客
月光博客
Spread Privacy
Spread Privacy
J
Java Code Geeks
The Register - Security
The Register - Security
V2EX - 技术
V2EX - 技术
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
美团技术团队
Latest news
Latest news
爱范儿
爱范儿
Hacker News - Newest:
Hacker News - Newest: "LLM"
Martin Fowler
Martin Fowler
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Cyber Attacks, Cyber Crime and Cyber Security
Microsoft Security Blog
Microsoft Security Blog
Y
Y Combinator Blog
P
Privacy & Cybersecurity Law Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
博客园 - 叶小钗
B
Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Security Latest
Security Latest
博客园 - 司徒正美
C
CERT Recently Published Vulnerability Notes
V
Visual Studio Blog
The Cloudflare Blog
IT之家
IT之家
The Hacker News
The Hacker News
The Last Watchdog
The Last Watchdog
Apple Machine Learning Research
Apple Machine Learning Research
人人都是产品经理
人人都是产品经理

Rust

RustScript: 给你的 Rust 项目带来脚本化功能 - V2EX RUST 语法极其丑陋 - V2EX 一款跑在终端里的本地优先密码管理器,用全屏 TUI 管理账号、密钥和安全笔记。 - V2EX 如何理解 rust 闭包的借用值机制? 被借用的值在闭包内到底是什么类型? [开源] Best of RS - 一个由 Rust 编写的追踪 Rust 开源趋势的全栈 web 项目 - V2EX Rust 真是非常适合 AI vibe coding 的语言 - V2EX Pumpkin - 使用 Rust 开发的高性能 Minecraft 服务端 - V2EX 开源这两天 Vibe 的 Rust 重写的 OpenClaw - V2EX 用 rust 写了一个非常简单的局域网文本同步的小玩意 - V2EX [寻求帮助 Linux ] 用 rust 写了一个跨平台输入监听库(鼠标键盘) - V2EX Contributions to Rust and LLVM in 2025 - V2EX Linux 内核中的 rust - V2EX 2025 年度 Rust 语言社区调查 已经发布 - V2EX rust 让我抓狂、擦汗 - V2EX 推荐一款我写的动态配置语言: Faml - V2EX 如何看待 Rust? - V2EX Rust Web 开发脚手架 v0.6 发布啦! - V2EX rathole 这个项目是不维护了吗? 之前那个 rust 贡献大佬找到工作了,找他的团队还不少 - V2EX 太快了! Rust 太快了! - V2EX 介绍一个 like rails 的 rust 框架。 性能和开发速度都快。 - V2EX 除了写小工具外再也不想用 Rust 了 - V2EX rust 我想你了 - V2EX rust 程序员的硬盘是多大的? nodejs 继任者? - V2EX rust 练手写的,仿 uv 包管理器 av - V2EX Rust 的安全神话?为何在关键系统如数据库、大模型代码中仍选 C++ rust 实现的抓包存盘的程序 nsave 有人使用 Rust 重构过旧项目吗? - V2EX 使用 WebAssembly 构建的高性能在线计算工具 V2EX tikio 里面的代码怎么调试呢 有人在用 rust 写 web api 吗? rust 来得快去得也快 - V2EX rust 的有没有什么好的论坛? - V2EX 这里搞 Rust 的多吗? - V2EX 目前 Rust 最好的开发工具是哪个? - V2EX rust 编译报错函数重复定义 - V2EX Rust 学习几个月之后,真正要自己写的时候就懵逼 - V2EX 关于 rust axum 中使用 gprc 的一个疑惑 - V2EX std::net::UdpSocket 的 shutdown 机制是我理解出了问题么? - V2EX 写了一个从 modelscope 下载模型的 crate - V2EX Rust 两次入门后,尝试写一个 web 项目,懵逼中~ - V2EX 求帮打包个 exe - V2EX Rust HTTP Client, Golang tls-client/utls 的完美替代品 - V2EX Rust 编写的高性能 HTTP/HTTPS/SOCKS5 代理服务器 - V2EX Rust API 开发脚手架 - V2EX FnOne 特征是至少调用一次还是只能调用一次? - V2EX 大佬们,一人来一道 Rust 面试题,准备年后跳槽 - V2EX 请教 rust 如何做到交叉编译 - V2EX 理了一下手上惯用的一些命令行小工具,发现蛮多是 rust 写的。是不是 rust 也适合做这种小工具 - V2EX rust 怎么不通过管理员权限的情况下拿到 windows 用户所有的 uwp 应用名称,图标和路径 - V2EX 统计下放弃 RUST 的人的数量=== - V2EX 关于 Rust 所有权,如果对 mut 变量进行嵌套 mut 引用该怎么理解?
看到这样的 rust 代码要懵逼了,不知道咋入手,求指导 - V2EX
5261 · 2025-04-11 · via Rust
pub async fn list(
    State(state): State<ArcAppState>,
    Query(frm): Query<form::subject::ListForAdmin>,
) -> Result<resp::JsonResp<model::subject::SubjectPaginate>> {
    let handler_name = "admin/subject/list";
    let p = get_pool(&state);
    let subjects = model::subject::Subject::list(
        &*p,
        &model::subject::SubjectListFilter {
            pq: model::subject::SubjectPaginateReq {
                page: frm.pq.page(),
                page_size: frm.pq.page_size(),
            },
            order: None,
            is_del: frm.is_del(),
            status: frm.status,
            name: frm.name,
            slug: frm.slug,
        },
    )
    .await
    .map_err(Error::from)
    .map_err(log_error(handler_name))?;
    Ok(resp::ok(subjects))
}


#[derive(Debug, Default, Deserialize, Serialize, sqlx::FromRow, Db)]
#[db(table = subjects, pk = id, del_field = is_del)]
pub struct Subject {
    #[db(find)]
    #[db(skip_update)]
    pub id: String,

    #[db(list_opt)]
    #[db(list_opt_like)]
    pub name: String,

    #[db(find)]
    #[db(exists)]
    #[db(list_opt)]
    #[db(list_opt_like)]
    pub slug: String,

    pub summary: String,

    #[db(find_opt)]
    #[db(list_opt)]
    pub is_del: bool,
    pub cover: String,

    #[db(list_opt)]
    pub status: Status,

    pub price: Decimal,
    pub pin: i32,
}

作为 Java 开发,看到这个 list 方法本能的想跳转过去看下这个 model::subject::Subject::list 方法的实现咋写的,但是跳转过去是宏? 那我咋知道最后是咋写的呢?

实在是懵逼~