Skip to main content

DynImageModel

Struct DynImageModel 

Source
pub struct DynImageModel<'dynosaur_struct> { /* private fields */ }

Implementations§

Source§

impl<'dynosaur_struct> DynImageModel<'dynosaur_struct>

Source

pub fn new_box( value: impl ImageModel + 'dynosaur_struct, ) -> Box<DynImageModel<'dynosaur_struct>>

Source

pub fn new_arc( value: impl ImageModel + 'dynosaur_struct, ) -> Arc<DynImageModel<'dynosaur_struct>>

Source

pub fn new_rc( value: impl ImageModel + 'dynosaur_struct, ) -> Rc<DynImageModel<'dynosaur_struct>>

Source

pub const fn from_box( value: Box<impl ImageModel + 'dynosaur_struct>, ) -> Box<DynImageModel<'dynosaur_struct>>

Source

pub const fn from_ref( value: &(impl ImageModel + 'dynosaur_struct), ) -> &DynImageModel<'dynosaur_struct>

Source

pub const fn from_mut( value: &mut (impl ImageModel + 'dynosaur_struct), ) -> &mut DynImageModel<'dynosaur_struct>

Trait Implementations§

Source§

impl<'dynosaur_struct> ImageModel for DynImageModel<'dynosaur_struct>

Source§

fn provider_name(&self) -> &str

Source§

fn model_id(&self) -> &str

Source§

fn max_images_per_call(&self) -> impl Future<Output = Option<u32>> + Send

Source§

fn generate( &self, options: ImageModelCallOptions, ) -> impl Future<Output = ImageModelGenerationResult> + Send

Auto Trait Implementations§

§

impl<'dynosaur_struct> !Freeze for DynImageModel<'dynosaur_struct>

§

impl<'dynosaur_struct> !RefUnwindSafe for DynImageModel<'dynosaur_struct>

§

impl<'dynosaur_struct> Send for DynImageModel<'dynosaur_struct>

§

impl<'dynosaur_struct> !Sized for DynImageModel<'dynosaur_struct>

§

impl<'dynosaur_struct> Sync for DynImageModel<'dynosaur_struct>

§

impl<'dynosaur_struct> !Unpin for DynImageModel<'dynosaur_struct>

§

impl<'dynosaur_struct> !UnsafeUnpin for DynImageModel<'dynosaur_struct>

§

impl<'dynosaur_struct> !UnwindSafe for DynImageModel<'dynosaur_struct>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more