pub struct Photo {
pub id: i64,
pub owner_id: i64,
pub access_key: Option<String>,
pub sizes: Vec<PhotoSize>,
pub text: Option<String>,
pub date: i64,
pub width: Option<i32>,
pub height: Option<i32>,
}Expand description
Photo attachment
Fields§
§id: i64Photo ID
owner_id: i64Owner ID
access_key: Option<String>Access key
sizes: Vec<PhotoSize>Photo sizes
text: Option<String>Text
date: i64Date
width: Option<i32>Width
height: Option<i32>Height
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Photo
impl<'de> Deserialize<'de> for Photo
Source§fn 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
Auto Trait Implementations§
impl Freeze for Photo
impl RefUnwindSafe for Photo
impl Send for Photo
impl Sync for Photo
impl Unpin for Photo
impl UnwindSafe for Photo
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