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: u32
Unix 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: String
Unique identifier for the video job.
model: String
The video generation model that produced the job.
object: String
The object type, which is always video.
progress: u8
Approximate completion percentage for the generation task.
remixed_from_video_id: Option<String>
Identifier of the source video if this video is a remix.
seconds: String
Duration of the generated clip in seconds.
size: String
The resolution of the generated video.
status: String
Current 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