#[non_exhaustive]pub struct TopCandidates {
pub candidates: Vec<LogprobCandidate>,
pub extra: ExtraFields,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.candidates: Vec<LogprobCandidate>§extra: ExtraFieldsImplementations§
Source§impl TopCandidates
impl TopCandidates
Trait Implementations§
Source§impl Clone for TopCandidates
impl Clone for TopCandidates
Source§fn clone(&self) -> TopCandidates
fn clone(&self) -> TopCandidates
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 moreSource§impl Debug for TopCandidates
impl Debug for TopCandidates
Source§impl Default for TopCandidates
impl Default for TopCandidates
Source§fn default() -> TopCandidates
fn default() -> TopCandidates
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TopCandidates
impl<'de> Deserialize<'de> for TopCandidates
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 PartialEq for TopCandidates
impl PartialEq for TopCandidates
Source§impl Serialize for TopCandidates
impl Serialize for TopCandidates
impl StructuralPartialEq for TopCandidates
Auto Trait Implementations§
impl Freeze for TopCandidates
impl RefUnwindSafe for TopCandidates
impl Send for TopCandidates
impl Sync for TopCandidates
impl Unpin for TopCandidates
impl UnsafeUnpin for TopCandidates
impl UnwindSafe for TopCandidates
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