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