pub struct MessageView<'a> {
pub author: ProfileViewBasic<'a>,
pub chat_profile: Option<Profile<'a>>,
pub cid: Cid<'a>,
pub deleted: Option<bool>,
pub indexed_at: Datetime,
pub record: Data<'a>,
pub reply_to: Option<MessageViewReplyTo<'a>>,
pub uri: AtUri<'a>,
pub extra_data: BTreeMap<SmolStr, Data<'a>>,
}Fields§
§chat_profile: Option<Profile<'a>>§cid: Cid<'a>§deleted: Option<bool>If true, this message has been deleted or labeled and should be cleared from the cache
indexed_at: Datetime§record: Data<'a>§reply_to: Option<MessageViewReplyTo<'a>>§uri: AtUri<'a>§extra_data: BTreeMap<SmolStr, Data<'a>>Trait Implementations§
Source§impl<'a> Clone for MessageView<'a>
impl<'a> Clone for MessageView<'a>
Source§fn clone(&self) -> MessageView<'a>
fn clone(&self) -> MessageView<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for MessageView<'a>
impl<'a> Debug for MessageView<'a>
Source§impl<'de: 'a, 'a> Deserialize<'de> for MessageView<'a>
impl<'de: 'a, 'a> Deserialize<'de> for MessageView<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> IntoStatic for MessageView<'a>
impl<'a> IntoStatic for MessageView<'a>
Source§type Output = MessageView<'static>
type Output = MessageView<'static>
The “owned” variant of the type. For
Cow<'a, str>, this is Cow<'static, str>, for example.Source§fn into_static(self) -> Self::Output
fn into_static(self) -> Self::Output
Turns the value into an “owned” variant, which can then be returned, moved, etc. Read more
Source§impl<'a> PartialEq for MessageView<'a>
impl<'a> PartialEq for MessageView<'a>
Source§impl<'a> Serialize for MessageView<'a>
impl<'a> Serialize for MessageView<'a>
impl<'a> Eq for MessageView<'a>
impl<'a> StructuralPartialEq for MessageView<'a>
Auto Trait Implementations§
impl<'a> !Freeze for MessageView<'a>
impl<'a> RefUnwindSafe for MessageView<'a>
impl<'a> Send for MessageView<'a>
impl<'a> Sync for MessageView<'a>
impl<'a> Unpin for MessageView<'a>
impl<'a> UnwindSafe for MessageView<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.