pub struct VideoGenerationResponse {
pub id: String,
pub polling_url: String,
pub status: VideoStatus,
pub error: String,
pub generation_id: String,
pub unsigned_urls: Vec<String>,
pub usage: Option<VideoGenerationUsage>,
}Expand description
Response from POST /videos and GET /videos/{job_id}.
Fields§
§id: StringJob identifier.
polling_url: StringURL to poll for status updates.
status: VideoStatusLifecycle status.
error: StringError message, when Self::status is VideoStatus::Failed.
generation_id: StringUnderlying generation id (provider-side).
unsigned_urls: Vec<String>Direct (unsigned) URLs for downloading the result.
usage: Option<VideoGenerationUsage>Cost / BYOK information, when reported.
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 (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 VideoGenerationResponse
impl Debug for VideoGenerationResponse
Source§impl Default for VideoGenerationResponse
impl Default for VideoGenerationResponse
Source§fn default() -> VideoGenerationResponse
fn default() -> VideoGenerationResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VideoGenerationResponse
impl<'de> Deserialize<'de> for VideoGenerationResponse
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
Source§impl PartialEq for VideoGenerationResponse
impl PartialEq for VideoGenerationResponse
Source§impl Serialize for VideoGenerationResponse
impl Serialize for VideoGenerationResponse
impl StructuralPartialEq for VideoGenerationResponse
Auto Trait Implementations§
impl Freeze for VideoGenerationResponse
impl RefUnwindSafe for VideoGenerationResponse
impl Send for VideoGenerationResponse
impl Sync for VideoGenerationResponse
impl Unpin for VideoGenerationResponse
impl UnsafeUnpin 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