#[non_exhaustive]pub struct VideoModel {
pub model: String,
pub id: String,
pub name: Option<String>,
pub durations: Option<Vec<u32>>,
pub resolutions: Option<Vec<String>>,
pub aspect_ratios: Option<Vec<String>>,
pub inputs: Option<Vec<VideoInputKind>>,
}Expand description
A video model and what it accepts, as the provider reports it.
None in a list means the provider does not say, never “not supported”: offer the option and
let the server answer. An empty list means the provider says there is nothing to choose.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.model: StringThe name to use with from_model, with the provider prefix.
id: StringThe ID of the model at the provider.
name: Option<String>A display name.
durations: Option<Vec<u32>>Lengths in seconds, ascending.
resolutions: Option<Vec<String>>Resolutions, in the format of the provider.
aspect_ratios: Option<Vec<String>>Aspect ratios, in the format of the provider.
inputs: Option<Vec<VideoInputKind>>The kinds of input the model accepts.
Implementations§
Trait Implementations§
Source§impl Clone for VideoModel
impl Clone for VideoModel
Source§impl Debug for VideoModel
impl Debug for VideoModel
Source§impl<'de> Deserialize<'de> for VideoModel
impl<'de> Deserialize<'de> for VideoModel
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 VideoModel
impl PartialEq for VideoModel
Source§impl Serialize for VideoModel
impl Serialize for VideoModel
impl StructuralPartialEq for VideoModel
Auto Trait Implementations§
impl Forget for VideoModel
impl Freeze for VideoModel
impl Move for VideoModel
impl RefUnwindSafe for VideoModel
impl Send for VideoModel
impl Sync for VideoModel
impl Unpin for VideoModel
impl UnsafeUnpin for VideoModel
impl UnwindSafe for VideoModel
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