Struct deviantart::types::deviation::DeviationMedia
source · pub struct DeviationMedia {
pub base_uri: Option<Url>,
pub token: Vec<String>,
pub types: Vec<MediaType>,
pub pretty_name: Option<String>,
pub unknown: HashMap<String, Value>,
}
Expand description
The media field of a Deviation
.
Fields§
§base_uri: Option<Url>
The base uri
token: Vec<String>
Image token
types: Vec<MediaType>
Types
pretty_name: Option<String>
Pretty Name
unknown: HashMap<String, Value>
Unknown K/Vs
Implementations§
source§impl DeviationMedia
impl DeviationMedia
sourcepub fn get_fullview_media_type(&self) -> Option<&MediaType>
pub fn get_fullview_media_type(&self) -> Option<&MediaType>
Try to get the fullview MediaType
.
sourcepub fn get_gif_media_type(&self) -> Option<&MediaType>
pub fn get_gif_media_type(&self) -> Option<&MediaType>
Try to get the gif MediaType
.
sourcepub fn get_best_video_media_type(&self) -> Option<&MediaType>
pub fn get_best_video_media_type(&self) -> Option<&MediaType>
Try to get the video MediaType
Trait Implementations§
source§impl Debug for DeviationMedia
impl Debug for DeviationMedia
source§impl<'de> Deserialize<'de> for DeviationMedia
impl<'de> Deserialize<'de> for DeviationMedia
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 DeviationMedia
impl RefUnwindSafe for DeviationMedia
impl Send for DeviationMedia
impl Sync for DeviationMedia
impl Unpin for DeviationMedia
impl UnwindSafe for DeviationMedia
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