#[non_exhaustive]pub struct LiveDecisionResult {
pub model: String,
pub answers: Vec<DecisionAnswer>,
pub id: Option<String>,
pub usage: Option<ResponseUsage>,
pub rest: Rest,
}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.model: String§answers: Vec<DecisionAnswer>§id: Option<String>§usage: Option<ResponseUsage>§rest: RestImplementations§
Source§impl LiveDecisionResult
impl LiveDecisionResult
Sourcepub fn builder(
model: String,
answers: Vec<DecisionAnswer>,
) -> LiveDecisionResultBuilder
pub fn builder( model: String, answers: Vec<DecisionAnswer>, ) -> LiveDecisionResultBuilder
Start a builder by supplying the required fields in declaration order.
Trait Implementations§
Source§impl Clone for LiveDecisionResult
impl Clone for LiveDecisionResult
Source§impl Debug for LiveDecisionResult
impl Debug for LiveDecisionResult
Source§impl DeclaredFields for LiveDecisionResult
impl DeclaredFields for LiveDecisionResult
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for LiveDecisionResult
impl<'de> Deserialize<'de> for LiveDecisionResult
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 LiveDecisionResult
impl PartialEq for LiveDecisionResult
Source§impl Serialize for LiveDecisionResult
impl Serialize for LiveDecisionResult
impl StructuralPartialEq for LiveDecisionResult
Auto Trait Implementations§
impl Freeze for LiveDecisionResult
impl RefUnwindSafe for LiveDecisionResult
impl Send for LiveDecisionResult
impl Sync for LiveDecisionResult
impl Unpin for LiveDecisionResult
impl UnsafeUnpin for LiveDecisionResult
impl UnwindSafe for LiveDecisionResult
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