Struct rust_tdlib::types::ProfilePhoto
source · [−]pub struct ProfilePhoto { /* private fields */ }
Expand description
Describes a user profile photo
Implementations
sourceimpl ProfilePhoto
impl ProfilePhoto
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> ProfilePhotoBuilder
pub fn id(&self) -> i64
pub fn small(&self) -> &File
pub fn big(&self) -> &File
pub fn minithumbnail(&self) -> &Option<Minithumbnail>
pub fn has_animation(&self) -> &Option<bool>
Trait Implementations
sourceimpl AsRef<ProfilePhoto> for ProfilePhoto
impl AsRef<ProfilePhoto> for ProfilePhoto
sourcefn as_ref(&self) -> &ProfilePhoto
fn as_ref(&self) -> &ProfilePhoto
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for ProfilePhoto
impl Clone for ProfilePhoto
sourcefn clone(&self) -> ProfilePhoto
fn clone(&self) -> ProfilePhoto
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ProfilePhoto
impl Debug for ProfilePhoto
sourceimpl Default for ProfilePhoto
impl Default for ProfilePhoto
sourcefn default() -> ProfilePhoto
fn default() -> ProfilePhoto
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ProfilePhoto
impl<'de> Deserialize<'de> for ProfilePhoto
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for ProfilePhoto
impl Serialize for ProfilePhoto
Auto Trait Implementations
impl RefUnwindSafe for ProfilePhoto
impl Send for ProfilePhoto
impl Sync for ProfilePhoto
impl Unpin for ProfilePhoto
impl UnwindSafe for ProfilePhoto
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more