pub enum CitationDetails {
File(FileCitation),
External(ExternalCitation),
Web(WebCitation),
Message(MessageCitation),
Memory(MemoryCitation),
Unknown(Value),
}Expand description
Details of a citation source (the kind is set by citation_type). https://docs.slack.dev/reference/block-kit/block-elements/citation-element
Variants§
File(FileCitation)
External(ExternalCitation)
Web(WebCitation)
Message(MessageCitation)
Memory(MemoryCitation)
Unknown(Value)
A kind this crate does not know. Keeps the received JSON and writes it back unchanged.
Trait Implementations§
Source§impl Clone for CitationDetails
impl Clone for CitationDetails
Source§impl Debug for CitationDetails
impl Debug for CitationDetails
Source§impl<'de> Deserialize<'de> for CitationDetails
impl<'de> Deserialize<'de> for CitationDetails
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ExternalCitation> for CitationDetails
impl From<ExternalCitation> for CitationDetails
Source§fn from(value: ExternalCitation) -> Self
fn from(value: ExternalCitation) -> Self
Converts to this type from the input type.
Source§impl From<FileCitation> for CitationDetails
impl From<FileCitation> for CitationDetails
Source§fn from(value: FileCitation) -> Self
fn from(value: FileCitation) -> Self
Converts to this type from the input type.
Source§impl From<MemoryCitation> for CitationDetails
impl From<MemoryCitation> for CitationDetails
Source§fn from(value: MemoryCitation) -> Self
fn from(value: MemoryCitation) -> Self
Converts to this type from the input type.
Source§impl From<MessageCitation> for CitationDetails
impl From<MessageCitation> for CitationDetails
Source§fn from(value: MessageCitation) -> Self
fn from(value: MessageCitation) -> Self
Converts to this type from the input type.
Source§impl From<WebCitation> for CitationDetails
impl From<WebCitation> for CitationDetails
Source§fn from(value: WebCitation) -> Self
fn from(value: WebCitation) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CitationDetails
impl PartialEq for CitationDetails
Source§impl Serialize for CitationDetails
impl Serialize for CitationDetails
impl StructuralPartialEq for CitationDetails
Auto Trait Implementations§
impl Freeze for CitationDetails
impl RefUnwindSafe for CitationDetails
impl Send for CitationDetails
impl Sync for CitationDetails
impl Unpin for CitationDetails
impl UnsafeUnpin for CitationDetails
impl UnwindSafe for CitationDetails
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