pub struct VideoResource {
pub completed_at: Option<u64>,
pub created_at: u64,
pub error: Option<VideoResourceError>,
pub expires_at: Option<u64>,
pub id: String,
pub model: String,
pub object: String,
pub progress: u8,
pub remixed_from_video_id: Option<String>,
pub seconds: VideoSeconds,
pub size: VideoSize,
pub status: VideoStatus,
}Available on crate feature
video-types only.Expand description
Structured information describing a generated video job.
Fields§
§completed_at: Option<u64>Unix timestamp (seconds) for when the job completed, if finished.
created_at: u64Unix timestamp (seconds) for when the job was created.
error: Option<VideoResourceError>Error payload that explains why generation failed, if applicable.
expires_at: Option<u64>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: VideoSecondsDuration 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 Clone for VideoResource
impl Clone for VideoResource
Source§fn clone(&self) -> VideoResource
fn clone(&self) -> VideoResource
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VideoResource
impl Debug for VideoResource
Source§impl<'de> Deserialize<'de> for VideoResource
impl<'de> Deserialize<'de> for VideoResource
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 VideoResource
impl RefUnwindSafe for VideoResource
impl Send for VideoResource
impl Sync for VideoResource
impl Unpin for VideoResource
impl UnwindSafe for VideoResource
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)