pub struct VideoJob {
pub completed_at: Option<u32>,
pub created_at: u32,
pub error: Option<VideoJobError>,
pub expires_at: Option<u32>,
pub id: String,
pub model: String,
pub object: String,
pub progress: u8,
pub remixed_from_video_id: Option<String>,
pub seconds: String,
pub size: String,
pub status: String,
}Expand description
Structured information describing a generated video job.
Fields§
§completed_at: Option<u32>Unix timestamp (seconds) for when the job completed, if finished.
created_at: u32Unix timestamp (seconds) for when the job was created.
error: Option<VideoJobError>Error payload that explains why generation failed, if applicable.
expires_at: Option<u32>Unix timestamp (seconds) for when the downloadable assets expire, if set.
id: StringUnique identifier for the video job.
model: StringThe video generation model that produced the job.
object: StringThe object type, which is always video.
progress: u8Approximate completion percentage for the generation task.
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: StringThe resolution of the generated video.
status: StringCurrent lifecycle status of the video job.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for VideoJob
impl<'de> Deserialize<'de> for VideoJob
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 VideoJob
impl RefUnwindSafe for VideoJob
impl Send for VideoJob
impl Sync for VideoJob
impl Unpin for VideoJob
impl UnwindSafe for VideoJob
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