pub enum LogitBiasArg {
Entries(Vec<(String, Value)>),
NotAnObject(&'static str),
}Expand description
A request’s logit_bias as the client sent it: the object’s entries in order with a repeated
key kept (a JSON object map would silently merge it), or the JSON type sent instead of an
object. null deserializes as an absent field.
Variants§
Entries(Vec<(String, Value)>)
NotAnObject(&'static str)
Not an object; the JSON type it was, for the 400.
Trait Implementations§
Source§impl Clone for LogitBiasArg
impl Clone for LogitBiasArg
Source§impl Debug for LogitBiasArg
impl Debug for LogitBiasArg
Source§impl<'de> Deserialize<'de> for LogitBiasArg
impl<'de> Deserialize<'de> for LogitBiasArg
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for LogitBiasArg
impl Freeze for LogitBiasArg
impl Move for LogitBiasArg
impl RefUnwindSafe for LogitBiasArg
impl Send for LogitBiasArg
impl Sync for LogitBiasArg
impl Unpin for LogitBiasArg
impl UnsafeUnpin for LogitBiasArgwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<(String, Value)>: UnsafeUnpin,
&'static str: UnsafeUnpin,
impl UnwindSafe for LogitBiasArg
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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