pub struct Photo {
pub url: String,
pub width: Option<i32>,
pub height: Option<i32>,
}
Expand description
Photo type
See section 2.3.4.1. of the oembed spec for more information
Fields§
§url: String
§width: Option<i32>
§height: Option<i32>
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
impl Eq for Photo
impl StructuralPartialEq for Photo
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