pub struct AlternativeWrapper {
pub account: String,
pub confidence: f64,
pub method: String,
}Expand description
Wire-format counterpart to rustledger_ops::enrichment::Alternative.
Fields§
§account: StringAccount this alternative would assign.
confidence: f64Confidence score for this alternative (0.0 to 1.0).
method: StringHow this alternative was determined. Same encoding rules as
EnrichmentWrapper::method.
Trait Implementations§
Source§impl Clone for AlternativeWrapper
impl Clone for AlternativeWrapper
Source§fn clone(&self) -> AlternativeWrapper
fn clone(&self) -> AlternativeWrapper
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 AlternativeWrapper
impl Debug for AlternativeWrapper
Source§impl<'de> Deserialize<'de> for AlternativeWrapper
impl<'de> Deserialize<'de> for AlternativeWrapper
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
Auto Trait Implementations§
impl Freeze for AlternativeWrapper
impl RefUnwindSafe for AlternativeWrapper
impl Send for AlternativeWrapper
impl Sync for AlternativeWrapper
impl Unpin for AlternativeWrapper
impl UnsafeUnpin for AlternativeWrapper
impl UnwindSafe for AlternativeWrapper
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