pub struct VideoGenerationResponse {
pub job_id: String,
pub status: VideoJobStatus,
pub estimated_duration: Option<Duration>,
}Expand description
Response from starting a video generation job.
Fields§
§job_id: StringUnique job identifier for polling status.
status: VideoJobStatusInitial job status.
estimated_duration: Option<Duration>Estimated time to completion (if known).
Implementations§
Source§impl VideoGenerationResponse
impl VideoGenerationResponse
Sourcepub fn new(job_id: impl Into<String>, status: VideoJobStatus) -> Self
pub fn new(job_id: impl Into<String>, status: VideoJobStatus) -> Self
Create a new video generation response.
Sourcepub fn with_estimated_duration(self, duration: Duration) -> Self
pub fn with_estimated_duration(self, duration: Duration) -> Self
Set the estimated duration.
Trait Implementations§
Source§impl Clone for VideoGenerationResponse
impl Clone for VideoGenerationResponse
Source§fn clone(&self) -> VideoGenerationResponse
fn clone(&self) -> VideoGenerationResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VideoGenerationResponse
impl RefUnwindSafe for VideoGenerationResponse
impl Send for VideoGenerationResponse
impl Sync for VideoGenerationResponse
impl Unpin for VideoGenerationResponse
impl UnwindSafe for VideoGenerationResponse
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