pub enum MsgSegmentRef<'a> {
Text {
text: &'a str,
extra: &'a ValueMap,
},
Mention {
user_id: &'a str,
extra: &'a ValueMap,
},
MentionAll {
extra: &'a ValueMap,
},
Image {
file_id: &'a str,
extra: &'a ValueMap,
},
Voice {
file_id: &'a str,
extra: &'a ValueMap,
},
Audio {
file_id: &'a str,
extra: &'a ValueMap,
},
Video {
file_id: &'a str,
extra: &'a ValueMap,
},
File {
file_id: &'a str,
extra: &'a ValueMap,
},
Location {
latitude: &'a f64,
longitude: &'a f64,
title: &'a str,
content: &'a str,
extra: &'a ValueMap,
},
Reply {
message_id: &'a str,
user_id: &'a str,
extra: &'a ValueMap,
},
Other {
ty: &'a str,
extra: &'a ValueMap,
},
}Variants§
Trait Implementations§
Source§impl<'a> TryAsRef<'a, MsgSegmentRef<'a>> for MsgSegment
impl<'a> TryAsRef<'a, MsgSegmentRef<'a>> for MsgSegment
fn _try_as_ref(&'a self) -> WalleResult<MsgSegmentRef<'a>>
Source§impl<'a> TryAsRef<'a, MsgSegmentRef<'a>> for Value
impl<'a> TryAsRef<'a, MsgSegmentRef<'a>> for Value
fn _try_as_ref(&'a self) -> WalleResult<MsgSegmentRef<'a>>
Auto Trait Implementations§
impl<'a> Freeze for MsgSegmentRef<'a>
impl<'a> RefUnwindSafe for MsgSegmentRef<'a>
impl<'a> Send for MsgSegmentRef<'a>
impl<'a> Sync for MsgSegmentRef<'a>
impl<'a> Unpin for MsgSegmentRef<'a>
impl<'a> UnwindSafe for MsgSegmentRef<'a>
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