pub enum Forward {
Ref {
id: String,
title: Option<String>,
preview: Vec<String>,
summary: Option<String>,
},
Nodes {
nodes: Vec<ForwardNode>,
title: Option<String>,
summary: Option<String>,
prompt: Option<String>,
news: Vec<String>,
source: Option<String>,
},
}Expand description
合并转发:接收为引用 + 预览元信息;发送为内联节点。
Variants§
Implementations§
Source§impl Forward
impl Forward
Sourcepub fn nodes(nodes: Vec<ForwardNode>) -> Forward
pub fn nodes(nodes: Vec<ForwardNode>) -> Forward
内联合并转发的常用构造:只给节点,4 个少用字段
(summary/prompt/news/source)默认空。需要其一时用链式 setter 或直接
构造 Forward::Nodes 结构体变体。镜像 Segment::share/music 的默认化约定。
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Forward
impl RefUnwindSafe for Forward
impl Send for Forward
impl Sync for Forward
impl Unpin for Forward
impl UnsafeUnpin for Forward
impl UnwindSafe for Forward
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more