pub struct WebDocument {
pub url: String,
pub access_hash: i64,
pub size: i32,
pub mime_type: String,
pub attributes: Vec<DocumentAttribute>,
}Expand description
Generated from:
webDocument#1c570ed1 url:string access_hash:long size:int mime_type:string attributes:Vector<DocumentAttribute> = WebDocumentFields§
§url: String§access_hash: i64§size: i32§mime_type: String§attributes: Vec<DocumentAttribute>Trait Implementations§
Source§impl Clone for WebDocument
impl Clone for WebDocument
Source§fn clone(&self) -> WebDocument
fn clone(&self) -> WebDocument
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 WebDocument
impl Debug for WebDocument
Source§impl Deserializable for WebDocument
impl Deserializable for WebDocument
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<WebDocument> for WebDocument
impl From<WebDocument> for WebDocument
Source§fn from(x: WebDocument) -> Self
fn from(x: WebDocument) -> Self
Converts to this type from the input type.
Source§impl Identifiable for WebDocument
impl Identifiable for WebDocument
Source§const CONSTRUCTOR_ID: u32 = 0x1c570ed1
const CONSTRUCTOR_ID: u32 = 0x1c570ed1
The constructor ID as specified in the TL schema.
Source§impl PartialEq for WebDocument
impl PartialEq for WebDocument
Source§impl Serializable for WebDocument
impl Serializable for WebDocument
Source§impl TryFrom<WebDocument> for WebDocument
impl TryFrom<WebDocument> for WebDocument
Source§type Error = WebDocument
type Error = WebDocument
The type returned in the event of a conversion error.
impl StructuralPartialEq for WebDocument
Auto Trait Implementations§
impl Freeze for WebDocument
impl RefUnwindSafe for WebDocument
impl Send for WebDocument
impl Sync for WebDocument
impl Unpin for WebDocument
impl UnsafeUnpin for WebDocument
impl UnwindSafe for WebDocument
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