pub struct StoryViews {
pub has_viewers: bool,
pub views_count: i32,
pub forwards_count: Option<i32>,
pub reactions: Option<Vec<ReactionCount>>,
pub reactions_count: Option<i32>,
pub recent_viewers: Option<Vec<i64>>,
}Expand description
Generated from:
storyViews#8d595cd6 flags:# has_viewers:flags.1?true views_count:int forwards_count:flags.2?int reactions:flags.3?Vector<ReactionCount> reactions_count:flags.4?int recent_viewers:flags.0?Vector<long> = StoryViewsFields§
§has_viewers: bool§views_count: i32§forwards_count: Option<i32>§reactions: Option<Vec<ReactionCount>>§reactions_count: Option<i32>§recent_viewers: Option<Vec<i64>>Trait Implementations§
Source§impl Clone for StoryViews
impl Clone for StoryViews
Source§fn clone(&self) -> StoryViews
fn clone(&self) -> StoryViews
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 StoryViews
impl Debug for StoryViews
Source§impl Deserializable for StoryViews
impl Deserializable for StoryViews
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<StoryViews> for StoryViews
impl From<StoryViews> for StoryViews
Source§fn from(x: StoryViews) -> Self
fn from(x: StoryViews) -> Self
Converts to this type from the input type.
Source§impl Identifiable for StoryViews
impl Identifiable for StoryViews
Source§const CONSTRUCTOR_ID: u32 = 0x8d595cd6
const CONSTRUCTOR_ID: u32 = 0x8d595cd6
The constructor ID as specified in the TL schema.
Source§impl PartialEq for StoryViews
impl PartialEq for StoryViews
Source§impl Serializable for StoryViews
impl Serializable for StoryViews
Source§impl TryFrom<StoryViews> for StoryViews
impl TryFrom<StoryViews> for StoryViews
Source§type Error = StoryViews
type Error = StoryViews
The type returned in the event of a conversion error.
impl StructuralPartialEq for StoryViews
Auto Trait Implementations§
impl Freeze for StoryViews
impl RefUnwindSafe for StoryViews
impl Send for StoryViews
impl Sync for StoryViews
impl Unpin for StoryViews
impl UnsafeUnpin for StoryViews
impl UnwindSafe for StoryViews
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