pub struct ModelsDecoder;Expand description
Decode model pages and the cursor each names.
Trait Implementations§
Source§impl<'id> Decoder<'id, ModelListing> for ModelsDecoder
impl<'id> Decoder<'id, ModelListing> for ModelsDecoder
Source§fn classify(
&self,
frame: WireFrame,
) -> WireEvent<<ModelsDecoder as Decoder<'id, ModelListing>>::Event>
fn classify( &self, frame: WireFrame, ) -> WireEvent<<ModelsDecoder as Decoder<'id, ModelListing>>::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: <ModelsDecoder as Decoder<'id, ModelListing>>::Event,
out: Out<'id, ModelListing>,
) -> Result<Flow, ProviderError>
fn decode( &mut self, payload: <ModelsDecoder as Decoder<'id, ModelListing>>::Event, out: Out<'id, ModelListing>, ) -> Result<Flow, ProviderError>
Write one
Known event into the reply. An error ends the reply with
it.Source§impl Default for ModelsDecoder
impl Default for ModelsDecoder
Source§fn default() -> ModelsDecoder
fn default() -> ModelsDecoder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ModelsDecoder
impl RefUnwindSafe for ModelsDecoder
impl Send for ModelsDecoder
impl Sync for ModelsDecoder
impl Unpin for ModelsDecoder
impl UnsafeUnpin for ModelsDecoder
impl UnwindSafe for ModelsDecoder
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