pub struct Evidence {
pub channel_id: ChannelId,
pub message_id: MessageId,
pub content_snapshot: Option<String>,
pub embeds_snapshot: Vec<Embed>,
pub omitted: bool,
pub redacted: bool,
}Expand description
One evidence item (§8.10).
Fields§
§channel_id: ChannelIdThe message’s channel.
message_id: MessageIdThe message.
content_snapshot: Option<String>The host’s snapshot at report time (content_snapshot?, §8.10); absent when redacted.
embeds_snapshot: Vec<Embed>The message’s embeds at report time; absent when it had none or when redacted.
omitted: boolThe snapshot was left out of this response for size; report.get with
evidence_from returns it (see Report::evidence_next).
redacted: boolWithheld from this viewer (permissions §4.6).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Evidence
impl<'de> Deserialize<'de> for Evidence
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
impl Eq for Evidence
impl StructuralPartialEq for Evidence
Auto Trait Implementations§
impl Freeze for Evidence
impl RefUnwindSafe for Evidence
impl Send for Evidence
impl Sync for Evidence
impl Unpin for Evidence
impl UnsafeUnpin for Evidence
impl UnwindSafe for Evidence
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