Skip to main content

DynVideoModel

Trait DynVideoModel 

Source
pub trait DynVideoModel:
    Send
    + Sync
    + 'static {
    // Required methods
    fn provider(&self) -> &ProviderId;
    fn model_id(&self) -> &ModelId;
    fn max_videos_per_call(&self) -> Option<usize>;
    fn supports_generate(&self) -> bool;
    fn do_generate(
        &self,
        options: VideoOptions,
    ) -> BoxFuture<'_, Result<VideoResult, ProviderError>>;
    fn supports_operations(&self) -> bool;
    fn do_start(
        &self,
        options: VideoStartOptions,
    ) -> BoxFuture<'_, Result<VideoStartResult, ProviderError>>;
    fn do_status(
        &self,
        options: VideoStatusOptions,
    ) -> BoxFuture<'_, Result<VideoStatusResult, ProviderError>>;
    fn supports_webhook(&self) -> bool;
    fn handle_webhook(
        &self,
        factory: WebhookFactory,
    ) -> BoxFuture<'_, Result<WebhookHandle, ProviderError>>;
}
Expand description

Object-safe counterpart of VideoModel.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§