pub struct Recommendation {
pub role: String,
pub pick: Option<Candidate>,
pub auto: bool,
pub fallback_from: Option<Candidate>,
pub candidates: Vec<Candidate>,
}Fields§
§role: String§pick: Option<Candidate>First available candidate (or the soonest-free one when all are limited).
auto: boolWhether the router may act on pick without the operator (role allows auto).
fallback_from: Option<Candidate>The preferred candidate when pick is a fallback from it.
candidates: Vec<Candidate>Trait Implementations§
Source§impl Clone for Recommendation
impl Clone for Recommendation
Source§impl Debug for Recommendation
impl Debug for Recommendation
impl Eq for Recommendation
Source§impl PartialEq for Recommendation
impl PartialEq for Recommendation
Source§impl Serialize for Recommendation
impl Serialize for Recommendation
impl StructuralPartialEq for Recommendation
Auto Trait Implementations§
impl Freeze for Recommendation
impl RefUnwindSafe for Recommendation
impl Send for Recommendation
impl Sync for Recommendation
impl Unpin for Recommendation
impl UnsafeUnpin for Recommendation
impl UnwindSafe for Recommendation
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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§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.