#[non_exhaustive]pub struct CoherenceInstance {
pub prediction: Option<String>,
/* private fields */
}Available on crate feature
evaluation-service only.Expand description
Spec for coherence instance.
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.prediction: Option<String>Required. Output of the evaluated model.
Implementations§
Source§impl CoherenceInstance
impl CoherenceInstance
pub fn new() -> Self
Sourcepub fn set_prediction<T>(self, v: T) -> Self
pub fn set_prediction<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_prediction<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_prediction<T>(self, v: Option<T>) -> Self
Sets or clears the value of prediction.
§Example
ⓘ
let x = CoherenceInstance::new().set_or_clear_prediction(Some("example"));
let x = CoherenceInstance::new().set_or_clear_prediction(None::<String>);Trait Implementations§
Source§impl Clone for CoherenceInstance
impl Clone for CoherenceInstance
Source§fn clone(&self) -> CoherenceInstance
fn clone(&self) -> CoherenceInstance
Returns a duplicate of the value. Read more
1.0.0 · 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 CoherenceInstance
impl Debug for CoherenceInstance
Source§impl Default for CoherenceInstance
impl Default for CoherenceInstance
Source§fn default() -> CoherenceInstance
fn default() -> CoherenceInstance
Returns the “default value” for a type. Read more
Source§impl Message for CoherenceInstance
impl Message for CoherenceInstance
Source§impl PartialEq for CoherenceInstance
impl PartialEq for CoherenceInstance
impl StructuralPartialEq for CoherenceInstance
Auto Trait Implementations§
impl Freeze for CoherenceInstance
impl RefUnwindSafe for CoherenceInstance
impl Send for CoherenceInstance
impl Sync for CoherenceInstance
impl Unpin for CoherenceInstance
impl UnwindSafe for CoherenceInstance
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