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