pub struct PlanningPolicy {
pub allow_lossy: bool,
pub allow_stateful: bool,
pub allow_supervised: bool,
pub forbidden_adapters: BTreeSet<String>,
pub preferred_adapters: BTreeSet<String>,
pub require_user_choice_on_ambiguity: bool,
pub max_hops: Option<usize>,
}Fields§
§allow_lossy: bool§allow_stateful: bool§allow_supervised: bool§forbidden_adapters: BTreeSet<String>§preferred_adapters: BTreeSet<String>§require_user_choice_on_ambiguity: bool§max_hops: Option<usize>Trait Implementations§
Source§impl Clone for PlanningPolicy
impl Clone for PlanningPolicy
Source§fn clone(&self) -> PlanningPolicy
fn clone(&self) -> PlanningPolicy
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 PlanningPolicy
impl Debug for PlanningPolicy
Source§impl Default for PlanningPolicy
impl Default for PlanningPolicy
Source§fn default() -> PlanningPolicy
fn default() -> PlanningPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PlanningPolicy
impl<'de> Deserialize<'de> for PlanningPolicy
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PlanningPolicy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PlanningPolicy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PlanningPolicy
Source§impl PartialEq for PlanningPolicy
impl PartialEq for PlanningPolicy
Source§fn eq(&self, other: &PlanningPolicy) -> bool
fn eq(&self, other: &PlanningPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PlanningPolicy
impl Serialize for PlanningPolicy
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PlanningPolicy
Auto Trait Implementations§
impl Freeze for PlanningPolicy
impl RefUnwindSafe for PlanningPolicy
impl Send for PlanningPolicy
impl Sync for PlanningPolicy
impl Unpin for PlanningPolicy
impl UnsafeUnpin for PlanningPolicy
impl UnwindSafe for PlanningPolicy
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