pub struct ImageGeneration;Expand description
Generating an image.
Trait Implementations§
Source§impl Clone for ImageGeneration
impl Clone for ImageGeneration
Source§fn clone(&self) -> ImageGeneration
fn clone(&self) -> ImageGeneration
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 moreimpl Copy for ImageGeneration
Source§impl Debug for ImageGeneration
impl Debug for ImageGeneration
Source§impl<'id> Decoder<'id, ImageGeneration> for ImagesDecoder
impl<'id> Decoder<'id, ImageGeneration> for ImagesDecoder
Source§type Event = GenerateContentResponse
type Event = GenerateContentResponse
The wire’s typed event, produced by this decoder’s classifier.
Source§fn classify(
&self,
frame: WireFrame,
) -> WireEvent<<ImagesDecoder as Decoder<'id, ImageGeneration>>::Event>
fn classify( &self, frame: WireFrame, ) -> WireEvent<<ImagesDecoder as Decoder<'id, ImageGeneration>>::Event>
Decode and classify one frame. A JSON wire MUST delegate to a
classifier in
crate::providers::internal::wire, so the
decode-then-validate policy is not re-derived per provider.Source§fn decode(
&mut self,
event: <ImagesDecoder as Decoder<'id, ImageGeneration>>::Event,
out: Out<'id, ImageGeneration>,
) -> Result<Flow, ProviderError>
fn decode( &mut self, event: <ImagesDecoder as Decoder<'id, ImageGeneration>>::Event, out: Out<'id, ImageGeneration>, ) -> Result<Flow, ProviderError>
Write one
Known event into the reply. An error ends the reply with
it.Source§impl<'id> Decoder<'id, ImageGeneration> for ImagesDecoder
Available on crate feature image only.
impl<'id> Decoder<'id, ImageGeneration> for ImagesDecoder
Available on crate feature
image only.Source§type Event = ImagesEvent
type Event = ImagesEvent
The wire’s typed event, produced by this decoder’s classifier.
Source§fn classify(
&self,
frame: WireFrame,
) -> WireEvent<<ImagesDecoder as Decoder<'id, ImageGeneration>>::Event>
fn classify( &self, frame: WireFrame, ) -> WireEvent<<ImagesDecoder as Decoder<'id, ImageGeneration>>::Event>
Decode and classify one frame. A JSON wire MUST delegate to a
classifier in
crate::providers::internal::wire, so the
decode-then-validate policy is not re-derived per provider.Source§fn decode(
&mut self,
event: <ImagesDecoder as Decoder<'id, ImageGeneration>>::Event,
out: Out<'id, ImageGeneration>,
) -> Result<Flow, ProviderError>
fn decode( &mut self, event: <ImagesDecoder as Decoder<'id, ImageGeneration>>::Event, out: Out<'id, ImageGeneration>, ) -> Result<Flow, ProviderError>
Write one
Known event into the reply. An error ends the reply with
it.impl Eq for ImageGeneration
Source§impl Operation for ImageGeneration
impl Operation for ImageGeneration
Source§type Request = ImageGenerationRequest
type Request = ImageGenerationRequest
The normalized request this operation accepts.
Source§type End = ImageGenerationResponse
type End = ImageGenerationResponse
What the provider sends when it ends the reply. A fold needs one to
produce a response, so a reply that stopped early has none.
Source§type Response = ImageGenerationResponse
type Response = ImageGenerationResponse
The normalized response the events and the end fold into.
Source§type Fold = Traced<ImageGeneration, Whole<ImageGeneration>>
type Fold = Traced<ImageGeneration, Whole<ImageGeneration>>
One reply’s state: it absorbs the events the consumer sees, then
folds them with the end into the response.
Source§fn fold(
request: &<ImageGeneration as Operation>::Request,
call: &mut Call<'_>,
) -> <ImageGeneration as Operation>::Fold
fn fold( request: &<ImageGeneration as Operation>::Request, call: &mut Call<'_>, ) -> <ImageGeneration as Operation>::Fold
The state for one reply to
request, before its first frame. The
call says who answers and in which mode; an operation that records
telemetry opens its span here and hands it to
Call::instrument.Source§impl PartialEq for ImageGeneration
impl PartialEq for ImageGeneration
impl StructuralPartialEq for ImageGeneration
Auto Trait Implementations§
impl Freeze for ImageGeneration
impl RefUnwindSafe for ImageGeneration
impl Send for ImageGeneration
impl Sync for ImageGeneration
impl Unpin for ImageGeneration
impl UnsafeUnpin for ImageGeneration
impl UnwindSafe for ImageGeneration
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.