pub struct AsyncVideoTaskResult {
pub model: Option<String>,
pub task_status: Option<TaskStatus>,
pub video_result: Option<Vec<VideoResultItem>>,
pub request_id: Option<String>,
}Expand description
A completed asynchronous video-generation result.
Fields§
§model: Option<String>Model that generated the video.
task_status: Option<TaskStatus>Current task status.
video_result: Option<Vec<VideoResultItem>>Generated videos.
request_id: Option<String>Request identifier.
Implementations§
Source§impl AsyncVideoTaskResult
impl AsyncVideoTaskResult
Sourcepub const fn status(&self) -> Option<&TaskStatus>
pub const fn status(&self) -> Option<&TaskStatus>
Borrow the current task status.
Sourcepub fn videos(&self) -> Option<&[VideoResultItem]>
pub fn videos(&self) -> Option<&[VideoResultItem]>
Borrow the generated video items.
Trait Implementations§
Source§impl Clone for AsyncVideoTaskResult
impl Clone for AsyncVideoTaskResult
Source§fn clone(&self) -> AsyncVideoTaskResult
fn clone(&self) -> AsyncVideoTaskResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AsyncVideoTaskResult
impl Debug for AsyncVideoTaskResult
Source§impl<'de> Deserialize<'de> for AsyncVideoTaskResult
impl<'de> Deserialize<'de> for AsyncVideoTaskResult
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 AsyncVideoTaskResult
impl RefUnwindSafe for AsyncVideoTaskResult
impl Send for AsyncVideoTaskResult
impl Sync for AsyncVideoTaskResult
impl Unpin for AsyncVideoTaskResult
impl UnsafeUnpin for AsyncVideoTaskResult
impl UnwindSafe for AsyncVideoTaskResult
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