pub struct InputPhotoLegacyFileLocation {
pub id: i64,
pub access_hash: i64,
pub file_reference: Vec<u8>,
pub volume_id: i64,
pub local_id: i32,
pub secret: i64,
}Expand description
Generated from:
inputPhotoLegacyFileLocation#d83466f3 id:long access_hash:long file_reference:bytes volume_id:long local_id:int secret:long = InputFileLocationFields§
§id: i64§access_hash: i64§file_reference: Vec<u8>§volume_id: i64§local_id: i32§secret: i64Trait Implementations§
Source§impl Clone for InputPhotoLegacyFileLocation
impl Clone for InputPhotoLegacyFileLocation
Source§fn clone(&self) -> InputPhotoLegacyFileLocation
fn clone(&self) -> InputPhotoLegacyFileLocation
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 InputPhotoLegacyFileLocation
impl Debug for InputPhotoLegacyFileLocation
Source§impl Deserializable for InputPhotoLegacyFileLocation
impl Deserializable for InputPhotoLegacyFileLocation
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<InputPhotoLegacyFileLocation> for InputFileLocation
impl From<InputPhotoLegacyFileLocation> for InputFileLocation
Source§fn from(x: InputPhotoLegacyFileLocation) -> Self
fn from(x: InputPhotoLegacyFileLocation) -> Self
Converts to this type from the input type.
Source§impl Identifiable for InputPhotoLegacyFileLocation
impl Identifiable for InputPhotoLegacyFileLocation
Source§const CONSTRUCTOR_ID: u32 = 0xd83466f3
const CONSTRUCTOR_ID: u32 = 0xd83466f3
The constructor ID as specified in the TL schema.
Source§impl PartialEq for InputPhotoLegacyFileLocation
impl PartialEq for InputPhotoLegacyFileLocation
Source§fn eq(&self, other: &InputPhotoLegacyFileLocation) -> bool
fn eq(&self, other: &InputPhotoLegacyFileLocation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<InputFileLocation> for InputPhotoLegacyFileLocation
impl TryFrom<InputFileLocation> for InputPhotoLegacyFileLocation
Source§type Error = InputFileLocation
type Error = InputFileLocation
The type returned in the event of a conversion error.
impl StructuralPartialEq for InputPhotoLegacyFileLocation
Auto Trait Implementations§
impl Freeze for InputPhotoLegacyFileLocation
impl RefUnwindSafe for InputPhotoLegacyFileLocation
impl Send for InputPhotoLegacyFileLocation
impl Sync for InputPhotoLegacyFileLocation
impl Unpin for InputPhotoLegacyFileLocation
impl UnsafeUnpin for InputPhotoLegacyFileLocation
impl UnwindSafe for InputPhotoLegacyFileLocation
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