pub struct VideoModel {Show 15 fields
pub id: String,
pub name: String,
pub canonical_slug: String,
pub created: i64,
pub description: String,
pub hugging_face_id: Option<String>,
pub allowed_passthrough_parameters: Vec<String>,
pub generate_audio: Option<bool>,
pub seed: Option<bool>,
pub pricing_skus: BTreeMap<String, String>,
pub supported_aspect_ratios: Vec<VideoAspectRatio>,
pub supported_durations: Vec<u32>,
pub supported_frame_images: Vec<VideoFrameType>,
pub supported_resolutions: Vec<VideoResolution>,
pub supported_sizes: Vec<String>,
}Expand description
A single video-generation model from GET /videos/models.
Fields§
§id: StringModel id.
name: StringDisplay name.
canonical_slug: StringStable canonical slug.
created: i64Unix-seconds creation timestamp.
description: StringLong description.
hugging_face_id: Option<String>Hugging Face model id, when published.
allowed_passthrough_parameters: Vec<String>Allowed provider passthrough parameter names.
generate_audio: Option<bool>Whether audio generation is supported.
seed: Option<bool>Whether sampling seeds are supported.
pricing_skus: BTreeMap<String, String>Pricing SKU table keyed by SKU name.
supported_aspect_ratios: Vec<VideoAspectRatio>Supported aspect ratios.
supported_durations: Vec<u32>Supported durations (seconds).
supported_frame_images: Vec<VideoFrameType>Supported frame-image roles.
supported_resolutions: Vec<VideoResolution>Supported output resolutions.
supported_sizes: Vec<String>Supported exact pixel sizes.
Trait Implementations§
Source§impl Clone for VideoModel
impl Clone for VideoModel
Source§fn clone(&self) -> VideoModel
fn clone(&self) -> VideoModel
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 VideoModel
impl Debug for VideoModel
Source§impl Default for VideoModel
impl Default for VideoModel
Source§fn default() -> VideoModel
fn default() -> VideoModel
Returns the “default value” for a type. Read more
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 Freeze 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