pub enum StoryContent {
Photo(StoryContentPhoto),
Video(StoryContentVideo),
Unsupported,
}
Variants§
Photo(StoryContentPhoto)
A photo story
Video(StoryContentVideo)
A video story
Unsupported
A story content that is not supported in the current TDLib version
Trait Implementations§
Source§impl Clone for StoryContent
impl Clone for StoryContent
Source§fn clone(&self) -> StoryContent
fn clone(&self) -> StoryContent
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 StoryContent
impl Debug for StoryContent
Source§impl<'de> Deserialize<'de> for StoryContent
impl<'de> Deserialize<'de> for StoryContent
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 PartialEq for StoryContent
impl PartialEq for StoryContent
Source§impl Serialize for StoryContent
impl Serialize for StoryContent
impl StructuralPartialEq for StoryContent
Auto Trait Implementations§
impl Freeze for StoryContent
impl RefUnwindSafe for StoryContent
impl Send for StoryContent
impl Sync for StoryContent
impl Unpin for StoryContent
impl UnwindSafe for StoryContent
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