pub struct MediaModel {
pub model: String,
pub name: Option<String>,
pub media_type: Option<String>,
pub operations: Vec<MediaModelOperation>,
pub extra: Map<String, Value>,
}Expand description
API-ready media model returned by model discovery.
Fields§
§model: StringStable model key.
name: Option<String>Human-readable name.
media_type: Option<String>Media type, such as image or video.
operations: Vec<MediaModelOperation>Public operation modes.
extra: Map<String, Value>Additional model metadata.
Trait Implementations§
Source§impl Clone for MediaModel
impl Clone for MediaModel
Source§fn clone(&self) -> MediaModel
fn clone(&self) -> MediaModel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MediaModel
impl Debug for MediaModel
Source§impl<'de> Deserialize<'de> for MediaModel
impl<'de> Deserialize<'de> for MediaModel
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 MediaModel
impl PartialEq for MediaModel
Source§fn eq(&self, other: &MediaModel) -> bool
fn eq(&self, other: &MediaModel) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MediaModel
impl Serialize for MediaModel
impl StructuralPartialEq for MediaModel
Auto Trait Implementations§
impl Freeze for MediaModel
impl RefUnwindSafe for MediaModel
impl Send for MediaModel
impl Sync for MediaModel
impl Unpin for MediaModel
impl UnsafeUnpin for MediaModel
impl UnwindSafe for MediaModel
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