pub struct GoogleVideoModel { /* private fields */ }Expand description
Veo video model.
Implementations§
Source§impl GoogleVideoModel
impl GoogleVideoModel
Sourcepub fn new(config: SharedConfig, model_id: impl Into<ModelId>) -> Self
pub fn new(config: SharedConfig, model_id: impl Into<ModelId>) -> Self
Creates the model.
Sourcepub fn prepare_request(&self, options: &VideoOptions) -> PreparedVideoRequest
pub fn prepare_request(&self, options: &VideoOptions) -> PreparedVideoRequest
Builds the request body for options.
Trait Implementations§
Source§impl Clone for GoogleVideoModel
impl Clone for GoogleVideoModel
Source§fn clone(&self) -> GoogleVideoModel
fn clone(&self) -> GoogleVideoModel
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 GoogleVideoModel
impl Debug for GoogleVideoModel
Source§impl VideoModel for GoogleVideoModel
impl VideoModel for GoogleVideoModel
Source§fn provider(&self) -> &ProviderId
fn provider(&self) -> &ProviderId
Provider identifier.
Source§fn max_videos_per_call(&self) -> Option<usize>
fn max_videos_per_call(&self) -> Option<usize>
Maximum number of videos per call, or
None when unknown (treated as 1).Source§async fn do_generate(
&self,
options: VideoOptions,
) -> Result<VideoResult, ProviderError>
async fn do_generate( &self, options: VideoOptions, ) -> Result<VideoResult, ProviderError>
Generates videos and waits for the result in one call.
Source§async fn do_start(
&self,
options: VideoStartOptions,
) -> Result<VideoStartResult, ProviderError>
async fn do_start( &self, options: VideoStartOptions, ) -> Result<VideoStartResult, ProviderError>
Starts an asynchronous generation operation.
Source§async fn do_status(
&self,
options: VideoStatusOptions,
) -> Result<VideoStatusResult, ProviderError>
async fn do_status( &self, options: VideoStatusOptions, ) -> Result<VideoStatusResult, ProviderError>
Queries the status of an operation returned by
do_start.Source§fn supports_generate(&self) -> bool
fn supports_generate(&self) -> bool
Whether
do_generate is implemented.Source§fn supports_webhook(&self) -> bool
fn supports_webhook(&self) -> bool
Whether the provider can deliver completion through a webhook.
Source§fn handle_webhook(
&self,
factory: Arc<dyn Fn() -> Pin<Box<dyn Future<Output = Result<WebhookHandle, ProviderError>> + Send>> + Sync + Send>,
) -> impl Future<Output = Result<WebhookHandle, ProviderError>> + Send
fn handle_webhook( &self, factory: Arc<dyn Fn() -> Pin<Box<dyn Future<Output = Result<WebhookHandle, ProviderError>> + Send>> + Sync + Send>, ) -> impl Future<Output = Result<WebhookHandle, ProviderError>> + Send
Prepares a webhook for an operation. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for GoogleVideoModel
impl !UnwindSafe for GoogleVideoModel
impl Freeze for GoogleVideoModel
impl Send for GoogleVideoModel
impl Sync for GoogleVideoModel
impl Unpin for GoogleVideoModel
impl UnsafeUnpin for GoogleVideoModel
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DynVideoModel for Twhere
T: VideoModel,
impl<T> DynVideoModel for Twhere
T: VideoModel,
Source§fn provider(&self) -> &ProviderId
fn provider(&self) -> &ProviderId
See
VideoModel::provider.Source§fn model_id(&self) -> &ModelId
fn model_id(&self) -> &ModelId
See
VideoModel::model_id.Source§fn max_videos_per_call(&self) -> Option<usize>
fn max_videos_per_call(&self) -> Option<usize>
Source§fn supports_generate(&self) -> bool
fn supports_generate(&self) -> bool
Source§fn do_generate(
&self,
options: VideoOptions,
) -> Pin<Box<dyn Future<Output = Result<VideoResult, ProviderError>> + Send + '_>>
fn do_generate( &self, options: VideoOptions, ) -> Pin<Box<dyn Future<Output = Result<VideoResult, ProviderError>> + Send + '_>>
Source§fn supports_operations(&self) -> bool
fn supports_operations(&self) -> bool
Source§fn do_start(
&self,
options: VideoStartOptions,
) -> Pin<Box<dyn Future<Output = Result<VideoStartResult, ProviderError>> + Send + '_>>
fn do_start( &self, options: VideoStartOptions, ) -> Pin<Box<dyn Future<Output = Result<VideoStartResult, ProviderError>> + Send + '_>>
See
VideoModel::do_start.