pub struct Video {Show 13 fields
pub id: String,
pub completed_at: Option<i64>,
pub created_at: i64,
pub error: Option<VideoCreateError>,
pub expires_at: Option<i64>,
pub model: VideoModel,
pub object: String,
pub progress: i64,
pub prompt: Option<String>,
pub remixed_from_video_id: Option<String>,
pub seconds: String,
pub size: VideoSize,
pub status: VideoStatus,
}Expand description
Structured information describing a generated video job.
Fields§
§id: StringUnique identifier for the video job.
completed_at: Option<i64>Unix timestamp (seconds) for when the job completed, if finished.
created_at: i64Unix timestamp (seconds) for when the job was created.
error: Option<VideoCreateError>Error payload that explains why generation failed, if applicable.
expires_at: Option<i64>Unix timestamp (seconds) for when the downloadable assets expire, if set.
model: VideoModelThe video generation model that produced the job.
object: StringThe object type, which is always video.
progress: i64Approximate completion percentage for the generation task.
prompt: Option<String>The prompt that was used to generate the video.
remixed_from_video_id: Option<String>Identifier of the source video if this video is a remix.
seconds: StringDuration of the generated clip in seconds.
size: VideoSizeThe resolution of the generated video.
status: VideoStatusCurrent lifecycle status of the video job.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Video
impl<'de> Deserialize<'de> for Video
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 Video
impl RefUnwindSafe for Video
impl Send for Video
impl Sync for Video
impl Unpin for Video
impl UnsafeUnpin for Video
impl UnwindSafe for Video
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