pub struct UserProfilePhoto {
pub photo_id: Option<i64>,
pub stripped_thumb: Option<Vec<u8>>,
pub cdn_url: Option<String>,
pub file_unique_id: Option<String>,
}Fields§
§photo_id: Option<i64>ID of the photo
stripped_thumb: Option<Vec<u8>>Stripped thumbnail of the photo
cdn_url: Option<String>Photo
file_unique_id: Option<String>Unique identifier of the file for cache invalidation
Implementations§
Source§impl UserProfilePhoto
impl UserProfilePhoto
Sourcepub fn photo_id(&self) -> i64
pub fn photo_id(&self) -> i64
Returns the value of photo_id, or the default value if photo_id is unset.
Sourcepub fn stripped_thumb(&self) -> &[u8] ⓘ
pub fn stripped_thumb(&self) -> &[u8] ⓘ
Returns the value of stripped_thumb, or the default value if stripped_thumb is unset.
Sourcepub fn cdn_url(&self) -> &str
pub fn cdn_url(&self) -> &str
Returns the value of cdn_url, or the default value if cdn_url is unset.
Sourcepub fn file_unique_id(&self) -> &str
pub fn file_unique_id(&self) -> &str
Returns the value of file_unique_id, or the default value if file_unique_id is unset.
Trait Implementations§
Source§impl Clone for UserProfilePhoto
impl Clone for UserProfilePhoto
Source§fn clone(&self) -> UserProfilePhoto
fn clone(&self) -> UserProfilePhoto
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UserProfilePhoto
impl Debug for UserProfilePhoto
Source§impl Default for UserProfilePhoto
impl Default for UserProfilePhoto
Source§fn default() -> UserProfilePhoto
fn default() -> UserProfilePhoto
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UserProfilePhoto
impl<'de> Deserialize<'de> for UserProfilePhoto
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UserProfilePhoto, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UserProfilePhoto, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for UserProfilePhoto
impl Message for UserProfilePhoto
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for UserProfilePhoto
impl PartialEq for UserProfilePhoto
Source§fn eq(&self, other: &UserProfilePhoto) -> bool
fn eq(&self, other: &UserProfilePhoto) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UserProfilePhoto
impl Serialize for UserProfilePhoto
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for UserProfilePhoto
Auto Trait Implementations§
impl Freeze for UserProfilePhoto
impl RefUnwindSafe for UserProfilePhoto
impl Send for UserProfilePhoto
impl Sync for UserProfilePhoto
impl Unpin for UserProfilePhoto
impl UnsafeUnpin for UserProfilePhoto
impl UnwindSafe for UserProfilePhoto
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