Enum clacks_mtproto::mtproto::Document
[−]
[src]
pub enum Document { Empty(Empty), Document(Document), }
TL-derived from Document
documentEmpty#36f8c871 id:long = Document;
document#87232bc7 id:long access_hash:long date:int mime_type:string size:int thumb:PhotoSize dc_id:int version:int attributes:Vector<DocumentAttribute> = Document;
Variants
Empty(Empty)
Document(Document)
Methods
impl Document
[src]
pub fn access_hash(&self) -> Option<&long>
[src]
pub fn attributes(&self) -> Option<&Vector<Boxed, DocumentAttribute>>
[src]
pub fn date(&self) -> Option<&int>
[src]
pub fn dc_id(&self) -> Option<&int>
[src]
pub fn id(&self) -> &long
[src]
pub fn mime_type(&self) -> Option<&string>
[src]
pub fn size(&self) -> Option<&int>
[src]
pub fn thumb(&self) -> Option<&PhotoSize>
[src]
pub fn version(&self) -> Option<&int>
[src]
Trait Implementations
impl Debug for Document
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Document
[src]
fn clone(&self) -> Document
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl BoxedSerialize for Document
[src]
fn serialize_boxed<'this>(
&'this self
) -> (ConstructorNumber, &'this BareSerialize)
[src]
&'this self
) -> (ConstructorNumber, &'this BareSerialize)
fn boxed_serialized_bytes(&self) -> Result<Vec<u8>>
[src]
impl BoxedDeserialize for Document
[src]
fn possible_constructors() -> Vec<ConstructorNumber>
[src]
fn deserialize_boxed(
_id: ConstructorNumber,
_de: &mut Deserializer
) -> Result<Self>
[src]
_id: ConstructorNumber,
_de: &mut Deserializer
) -> Result<Self>