pub struct SelectionState {
pub provider: String,
pub model: Option<String>,
pub at_ms: u64,
pub chosen: Option<String>,
pub failure: Option<SelectionFailure>,
pub vend_failure: Option<ObservationFailure>,
}Expand description
The last automatic selection for one provider and model.
Fields§
§provider: String§model: Option<String>None: any model.
at_ms: u64§chosen: Option<String>The chosen account (also set when its token could not be vended).
failure: Option<SelectionFailure>Why no account was chosen.
vend_failure: Option<ObservationFailure>Why the chosen account’s token could not be vended.
Trait Implementations§
Source§impl Clone for SelectionState
impl Clone for SelectionState
Source§impl Debug for SelectionState
impl Debug for SelectionState
Source§impl<'de> Deserialize<'de> for SelectionState
impl<'de> Deserialize<'de> for SelectionState
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 Eq for SelectionState
Source§impl PartialEq for SelectionState
impl PartialEq for SelectionState
Source§impl Serialize for SelectionState
impl Serialize for SelectionState
impl StructuralPartialEq for SelectionState
Auto Trait Implementations§
impl Freeze for SelectionState
impl RefUnwindSafe for SelectionState
impl Send for SelectionState
impl Sync for SelectionState
impl Unpin for SelectionState
impl UnsafeUnpin for SelectionState
impl UnwindSafe for SelectionState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.