#[non_exhaustive]pub enum ConversationItemWithReference {
Item(ConversationItemWithReferencePayload),
Reference(ConversationItemReference),
}Expand description
References require an id; other legacy item fields follow the standalone Markdown shape.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Item(ConversationItemWithReferencePayload)
Reference(ConversationItemReference)
Trait Implementations§
Source§impl DeclaredFields for ConversationItemWithReference
impl DeclaredFields for ConversationItemWithReference
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for ConversationItemWithReference
impl<'de> Deserialize<'de> for ConversationItemWithReference
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 StructuralPartialEq for ConversationItemWithReference
Auto Trait Implementations§
impl Freeze for ConversationItemWithReference
impl RefUnwindSafe for ConversationItemWithReference
impl Send for ConversationItemWithReference
impl Sync for ConversationItemWithReference
impl Unpin for ConversationItemWithReference
impl UnsafeUnpin for ConversationItemWithReference
impl UnwindSafe for ConversationItemWithReference
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