pub enum ContentSource {
Inline {
item_content: String,
},
Storage,
Ipfs,
}Expand description
Where to find the content of the message. Note that this is a mix of ItemType / ItemContent if you are used to the Python SDK.
Variants§
Trait Implementations§
Source§impl Clone for ContentSource
impl Clone for ContentSource
Source§fn clone(&self) -> ContentSource
fn clone(&self) -> ContentSource
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 Debug for ContentSource
impl Debug for ContentSource
Source§impl<'de> Deserialize<'de> for ContentSource
impl<'de> Deserialize<'de> for ContentSource
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 Hash for ContentSource
impl Hash for ContentSource
Source§impl PartialEq for ContentSource
impl PartialEq for ContentSource
Source§impl Serialize for ContentSource
impl Serialize for ContentSource
impl Eq for ContentSource
impl StructuralPartialEq for ContentSource
Auto Trait Implementations§
impl Freeze for ContentSource
impl RefUnwindSafe for ContentSource
impl Send for ContentSource
impl Sync for ContentSource
impl Unpin for ContentSource
impl UnsafeUnpin for ContentSource
impl UnwindSafe for ContentSource
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