#[non_exhaustive]pub struct StateCondition {
pub code: Code,
pub message: String,
/* private fields */
}Expand description
A condition that is part of the trigger state computation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.code: CodeThe canonical code of the condition.
message: StringHuman-readable message.
Implementations§
Trait Implementations§
Source§impl Clone for StateCondition
impl Clone for StateCondition
Source§fn clone(&self) -> StateCondition
fn clone(&self) -> StateCondition
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 StateCondition
impl Debug for StateCondition
Source§impl Default for StateCondition
impl Default for StateCondition
Source§fn default() -> StateCondition
fn default() -> StateCondition
Returns the “default value” for a type. Read more
Source§impl Message for StateCondition
impl Message for StateCondition
Source§impl PartialEq for StateCondition
impl PartialEq for StateCondition
impl StructuralPartialEq for StateCondition
Auto Trait Implementations§
impl Freeze for StateCondition
impl RefUnwindSafe for StateCondition
impl Send for StateCondition
impl Sync for StateCondition
impl Unpin for StateCondition
impl UnwindSafe for StateCondition
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