pub struct ImageGenerationModelHandle<'a> { /* private fields */ }๐Deprecated since 0.25.0:
DynClientBuilder and related features have been deprecated and will be removed in a future release.Available on crate feature
image only.Expand description
Wraps a ImageGenerationModel in a dyn-compatible way for ImageGenerationRequestBuilder.
Trait Implementationsยง
Sourceยงimpl<'a> Clone for ImageGenerationModelHandle<'a>
impl<'a> Clone for ImageGenerationModelHandle<'a>
Sourceยงfn clone(&self) -> ImageGenerationModelHandle<'a>
fn clone(&self) -> ImageGenerationModelHandle<'a>
Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSourceยงimpl ImageGenerationModel for ImageGenerationModelHandle<'_>
impl ImageGenerationModel for ImageGenerationModelHandle<'_>
type Response = ()
type Client = Nothing
fn image_generation( &self, request: ImageGenerationRequest, ) -> impl Future<Output = Result<ImageGenerationResponse<Self::Response>, ImageGenerationError>> + Send
fn image_generation_request(&self) -> ImageGenerationRequestBuilder<Self>
Auto Trait Implementationsยง
impl<'a> Freeze for ImageGenerationModelHandle<'a>
impl<'a> !RefUnwindSafe for ImageGenerationModelHandle<'a>
impl<'a> Send for ImageGenerationModelHandle<'a>
impl<'a> Sync for ImageGenerationModelHandle<'a>
impl<'a> Unpin for ImageGenerationModelHandle<'a>
impl<'a> !UnwindSafe for ImageGenerationModelHandle<'a>
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
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<T> CloneableStorage for T
impl<T> CloneableStorage for T
fn clone_storage(&self) -> Box<dyn CloneableStorage>
Sourceยงimpl<T> ImageGenerationModelDyn for Twhere
T: ImageGenerationModel,
impl<T> ImageGenerationModelDyn for Twhere
T: ImageGenerationModel,
Sourceยงfn image_generation(
&self,
request: ImageGenerationRequest,
) -> Pin<Box<dyn Future<Output = Result<ImageGenerationResponse<()>, ImageGenerationError>> + Send + '_>>
fn image_generation( &self, request: ImageGenerationRequest, ) -> Pin<Box<dyn Future<Output = Result<ImageGenerationResponse<()>, ImageGenerationError>> + Send + '_>>
๐Deprecated since 0.25.0:
DynClientBuilder and related features have been deprecated and will be removed in a future release. In this case, use ImageGenerationModel instead.Available on crate feature
image only.Sourceยงfn image_generation_request(
&self,
) -> ImageGenerationRequestBuilder<ImageGenerationModelHandle<'_>>
fn image_generation_request( &self, ) -> ImageGenerationRequestBuilder<ImageGenerationModelHandle<'_>>
๐Deprecated since 0.25.0:
DynClientBuilder and related features have been deprecated and will be removed in a future release. In this case, use ImageGenerationModel instead.Available on crate feature
image only.Sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more