pub struct DecisionDriver {
pub description: String,
pub priority: Option<DriverPriority>,
}Expand description
Driver/reason for the decision
Fields§
§description: StringDescription of why this is a driver
priority: Option<DriverPriority>Priority of this driver
Implementations§
Source§impl DecisionDriver
impl DecisionDriver
Sourcepub fn with_priority(
description: impl Into<String>,
priority: DriverPriority,
) -> Self
pub fn with_priority( description: impl Into<String>, priority: DriverPriority, ) -> Self
Create a decision driver with priority
Trait Implementations§
Source§impl Clone for DecisionDriver
impl Clone for DecisionDriver
Source§fn clone(&self) -> DecisionDriver
fn clone(&self) -> DecisionDriver
Returns a duplicate of the value. Read more
1.0.0 · 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 DecisionDriver
impl Debug for DecisionDriver
Source§impl<'de> Deserialize<'de> for DecisionDriver
impl<'de> Deserialize<'de> for DecisionDriver
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
Source§impl PartialEq for DecisionDriver
impl PartialEq for DecisionDriver
Source§impl Serialize for DecisionDriver
impl Serialize for DecisionDriver
impl StructuralPartialEq for DecisionDriver
Auto Trait Implementations§
impl Freeze for DecisionDriver
impl RefUnwindSafe for DecisionDriver
impl Send for DecisionDriver
impl Sync for DecisionDriver
impl Unpin for DecisionDriver
impl UnwindSafe for DecisionDriver
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