pub struct ModelListing;Expand description
Lists provider models, one page per call.
Trait Implementations§
Source§impl Clone for ModelListing
impl Clone for ModelListing
impl Copy for ModelListing
Source§impl Debug for ModelListing
impl Debug for ModelListing
Source§impl<'id> Decoder<'id, ModelListing> for ModelsDecoder
impl<'id> Decoder<'id, ModelListing> for ModelsDecoder
Source§fn classify(&self, frame: WireFrame) -> WireEvent<Self::Event>
fn classify(&self, frame: WireFrame) -> WireEvent<Self::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,
page: Self::Event,
out: Out<'id, ModelListing>,
) -> Result<Flow, ProviderError>
fn decode( &mut self, page: Self::Event, out: Out<'id, ModelListing>, ) -> Result<Flow, ProviderError>
Write one
Known event into the reply. An error ends the reply with
it.Source§impl<'id> Decoder<'id, ModelListing> for ModelsDecoder
impl<'id> Decoder<'id, ModelListing> for ModelsDecoder
Source§fn classify(&self, frame: WireFrame) -> WireEvent<Self::Event>
fn classify(&self, frame: WireFrame) -> WireEvent<Self::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: Value,
out: Out<'id, ModelListing>,
) -> Result<Flow, ProviderError>
fn decode( &mut self, event: Value, out: Out<'id, ModelListing>, ) -> Result<Flow, ProviderError>
Write one
Known event into the reply. An error ends the reply with
it.Source§impl<'id> Decoder<'id, ModelListing> for ModelsDecoder
impl<'id> Decoder<'id, ModelListing> for ModelsDecoder
Source§fn classify(&self, frame: WireFrame) -> WireEvent<Self::Event>
fn classify(&self, frame: WireFrame) -> WireEvent<Self::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,
payload: Self::Event,
out: Out<'id, ModelListing>,
) -> Result<Flow, ProviderError>
fn decode( &mut self, payload: Self::Event, out: Out<'id, ModelListing>, ) -> Result<Flow, ProviderError>
Write one
Known event into the reply. An error ends the reply with
it.Source§impl<'id> Decoder<'id, ModelListing> for ModelsDecoder
impl<'id> Decoder<'id, ModelListing> for ModelsDecoder
Source§type Event = ListModelsResponse
type Event = ListModelsResponse
The wire’s typed event, produced by this decoder’s classifier.
Source§fn classify(&self, frame: WireFrame) -> WireEvent<Self::Event>
fn classify(&self, frame: WireFrame) -> WireEvent<Self::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,
reply: Self::Event,
out: Out<'id, ModelListing>,
) -> Result<Flow, ProviderError>
fn decode( &mut self, reply: Self::Event, out: Out<'id, ModelListing>, ) -> Result<Flow, ProviderError>
Write one
Known event into the reply. An error ends the reply with
it.Source§impl<'id> Decoder<'id, ModelListing> for ModelsDecoder
impl<'id> Decoder<'id, ModelListing> for ModelsDecoder
Source§type Event = ModelsReply
type Event = ModelsReply
The wire’s typed event, produced by this decoder’s classifier.
Source§fn classify(&self, frame: WireFrame) -> WireEvent<Self::Event>
fn classify(&self, frame: WireFrame) -> WireEvent<Self::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: Self::Event,
out: Out<'id, ModelListing>,
) -> Result<Flow, ProviderError>
fn decode( &mut self, event: Self::Event, out: Out<'id, ModelListing>, ) -> Result<Flow, ProviderError>
Write one
Known event into the reply. An error ends the reply with
it.impl Eq for ModelListing
Source§impl Operation for ModelListing
impl Operation for ModelListing
Source§type End = ModelPage
type End = ModelPage
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 Fold = Whole<ModelListing>
type Fold = Whole<ModelListing>
One reply’s state: it absorbs the events the consumer sees, then
folds them with the end into the response.
Source§fn fold(_request: &Self::Request, _call: &mut Call<'_>) -> Self::Fold
fn fold(_request: &Self::Request, _call: &mut Call<'_>) -> Self::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§fn prepare(
request: Self::Request,
wire: &Descriptor<'_>,
) -> Result<Self::Request, ProviderError>
fn prepare( request: Self::Request, wire: &Descriptor<'_>, ) -> Result<Self::Request, ProviderError>
Shape
request for the wire wire describes, or reject a request
no provider of this operation can answer. The driver calls it before
the request is encoded, so a rejected request reaches no wire or
transport. Passes every request through by default.Source§impl PartialEq for ModelListing
impl PartialEq for ModelListing
impl StructuralPartialEq for ModelListing
Auto Trait Implementations§
impl Freeze for ModelListing
impl RefUnwindSafe for ModelListing
impl Send for ModelListing
impl Sync for ModelListing
impl Unpin for ModelListing
impl UnsafeUnpin for ModelListing
impl UnwindSafe for ModelListing
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<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.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