pub struct FieldLogprobs {
pub field: String,
pub item: LogprobItem,
pub values: BTreeMap<String, f64>,
}Expand description
Backend option log-probabilities; field eligibility is checked by the core.
Fields§
§field: String§item: LogprobItem§values: BTreeMap<String, f64>Trait Implementations§
Source§impl Clone for FieldLogprobs
impl Clone for FieldLogprobs
Source§impl Debug for FieldLogprobs
impl Debug for FieldLogprobs
Source§impl<'de> Deserialize<'de> for FieldLogprobs
impl<'de> Deserialize<'de> for FieldLogprobs
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for FieldLogprobs
impl JsonSchema for FieldLogprobs
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for FieldLogprobs
impl PartialEq for FieldLogprobs
Source§impl Serialize for FieldLogprobs
impl Serialize for FieldLogprobs
impl StructuralPartialEq for FieldLogprobs
Auto Trait Implementations§
impl Freeze for FieldLogprobs
impl RefUnwindSafe for FieldLogprobs
impl Send for FieldLogprobs
impl Sync for FieldLogprobs
impl Unpin for FieldLogprobs
impl UnsafeUnpin for FieldLogprobs
impl UnwindSafe for FieldLogprobs
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