pub struct Media {
pub type: RHashType,
pub foreign_key: String,
pub details: Option<Value>,
pub preferred: Option<bool>,
pub direct_url: Option<String>,
pub view_url: Option<String>,
}
Expand description
Media : The Media
object contains a reference for most any media associated with a team or event on TBA.
Fields§
§type: RHashType
String type of the media element.
foreign_key: String
The key used to identify this media on the media site.
details: Option<Value>
If required, a JSON dict of additional media information.
preferred: Option<bool>
True if the media is of high quality.
direct_url: Option<String>
Direct URL to the media.
view_url: Option<String>
The URL that leads to the full web page for the media, if one exists.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Media
impl<'de> Deserialize<'de> for Media
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 StructuralPartialEq for Media
Auto Trait Implementations§
impl Freeze for Media
impl RefUnwindSafe for Media
impl Send for Media
impl Sync for Media
impl Unpin for Media
impl UnwindSafe for Media
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