pub struct SensorPolicy {
pub blocking: bool,
pub missing: MissingPolicy,
pub section: Option<String>,
pub require_label: Option<String>,
pub repro: Option<String>,
}Expand description
A per-sensor policy in cockpit.toml.
Fields§
§blocking: bool§missing: MissingPolicy§section: Option<String>§require_label: Option<String>§repro: Option<String>Trait Implementations§
Source§impl Clone for SensorPolicy
impl Clone for SensorPolicy
Source§fn clone(&self) -> SensorPolicy
fn clone(&self) -> SensorPolicy
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 SensorPolicy
impl Debug for SensorPolicy
Source§impl Default for SensorPolicy
impl Default for SensorPolicy
Source§fn default() -> SensorPolicy
fn default() -> SensorPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SensorPolicy
impl<'de> Deserialize<'de> for SensorPolicy
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 SensorPolicy
impl PartialEq for SensorPolicy
Source§impl Serialize for SensorPolicy
impl Serialize for SensorPolicy
impl Eq for SensorPolicy
impl StructuralPartialEq for SensorPolicy
Auto Trait Implementations§
impl Freeze for SensorPolicy
impl RefUnwindSafe for SensorPolicy
impl Send for SensorPolicy
impl Sync for SensorPolicy
impl Unpin for SensorPolicy
impl UnsafeUnpin for SensorPolicy
impl UnwindSafe for SensorPolicy
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