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<u64>,
}
Fields§
§file_id: String
§file_unique_id: String
§width: u32
§height: u32
§file_size: Option<u64>
Implementations§
source§impl 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§
source§impl<'de> Deserialize<'de> for PhotoSize
impl<'de> Deserialize<'de> for PhotoSize
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
source§impl PartialEq for PhotoSize
impl PartialEq for PhotoSize
impl Eq for PhotoSize
impl StructuralPartialEq for PhotoSize
Auto Trait Implementations§
impl Freeze for PhotoSize
impl RefUnwindSafe for PhotoSize
impl Send for PhotoSize
impl Sync for PhotoSize
impl Unpin for PhotoSize
impl UnwindSafe for PhotoSize
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