pub struct SelectionPlan {
pub provider: String,
pub model: Option<String>,
pub strategy: Strategy,
pub urgent_horizon_ms: u64,
pub sticky: bool,
pub current: Option<CredentialRef>,
pub now_ms: u64,
pub rows: Vec<PlanRow>,
pub selection: Selection,
}Fields§
§provider: String§model: Option<String>§strategy: Strategy§urgent_horizon_ms: u64§sticky: bool§current: Option<CredentialRef>§now_ms: u64§rows: Vec<PlanRow>§selection: SelectionImplementations§
Source§impl SelectionPlan
impl SelectionPlan
pub fn from_candidates( req: &SelectionRequest<'_>, candidates: &[AccountCapacity], ) -> Self
Trait Implementations§
Source§impl Clone for SelectionPlan
impl Clone for SelectionPlan
Source§impl Debug for SelectionPlan
impl Debug for SelectionPlan
Source§impl<'de> Deserialize<'de> for SelectionPlan
impl<'de> Deserialize<'de> for SelectionPlan
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 SelectionPlan
impl RefUnwindSafe for SelectionPlan
impl Send for SelectionPlan
impl Sync for SelectionPlan
impl Unpin for SelectionPlan
impl UnsafeUnpin for SelectionPlan
impl UnwindSafe for SelectionPlan
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