Struct frankenstein::objects::PhotoSize
source · [−]pub struct PhotoSize {
pub file_id: String,
pub file_unique_id: String,
pub width: u32,
pub height: u32,
pub file_size: Option<u32>,
}
Fields
file_id: String
file_unique_id: String
width: u32
height: u32
file_size: Option<u32>
Implementations
sourceimpl PhotoSize
impl PhotoSize
sourcepub fn builder() -> PhotoSizeBuilder<((), (), (), (), ())>
pub fn builder() -> PhotoSizeBuilder<((), (), (), (), ())>
Create a builder for building PhotoSize
.
On the builder, call .file_id(...)
, .file_unique_id(...)
, .width(...)
, .height(...)
, .file_size(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of PhotoSize
.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for PhotoSize
impl<'de> Deserialize<'de> for PhotoSize
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
impl StructuralPartialEq for PhotoSize
Auto Trait Implementations
impl RefUnwindSafe for PhotoSize
impl Send for PhotoSize
impl Sync for PhotoSize
impl Unpin for PhotoSize
impl UnwindSafe for PhotoSize
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