pub struct MessageRange {
pub min_id: i32,
pub max_id: i32,
}Expand description
Fields§
§min_id: i32§max_id: i32Trait Implementations§
Source§impl Clone for MessageRange
impl Clone for MessageRange
Source§fn clone(&self) -> MessageRange
fn clone(&self) -> MessageRange
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 MessageRange
impl Debug for MessageRange
Source§impl Deserializable for MessageRange
impl Deserializable for MessageRange
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<MessageRange> for MessageRange
impl From<MessageRange> for MessageRange
Source§fn from(x: MessageRange) -> Self
fn from(x: MessageRange) -> Self
Converts to this type from the input type.
Source§impl Identifiable for MessageRange
impl Identifiable for MessageRange
Source§const CONSTRUCTOR_ID: u32 = 0x0ae30253
const CONSTRUCTOR_ID: u32 = 0x0ae30253
The constructor ID as specified in the TL schema.
Source§impl PartialEq for MessageRange
impl PartialEq for MessageRange
Source§impl Serializable for MessageRange
impl Serializable for MessageRange
Source§impl TryFrom<MessageRange> for MessageRange
impl TryFrom<MessageRange> for MessageRange
Source§type Error = MessageRange
type Error = MessageRange
The type returned in the event of a conversion error.
impl StructuralPartialEq for MessageRange
Auto Trait Implementations§
impl Freeze for MessageRange
impl RefUnwindSafe for MessageRange
impl Send for MessageRange
impl Sync for MessageRange
impl Unpin for MessageRange
impl UnsafeUnpin for MessageRange
impl UnwindSafe for MessageRange
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