Struct StateConstraint
#[non_exhaustive]pub struct StateConstraint {
pub name: String,
pub value: String,
}Expand description
A property constraint used when matching a state.
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.name: StringProperty name.
value: StringRequired serialized value.
Implementations§
§impl StateConstraint
impl StateConstraint
Trait Implementations§
§impl Clone for StateConstraint
impl Clone for StateConstraint
§fn clone(&self) -> StateConstraint
fn clone(&self) -> StateConstraint
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 more§impl Debug for StateConstraint
impl Debug for StateConstraint
impl Eq for StateConstraint
§impl PartialEq for StateConstraint
impl PartialEq for StateConstraint
impl StructuralPartialEq for StateConstraint
Auto Trait Implementations§
impl Freeze for StateConstraint
impl RefUnwindSafe for StateConstraint
impl Send for StateConstraint
impl Sync for StateConstraint
impl Unpin for StateConstraint
impl UnsafeUnpin for StateConstraint
impl UnwindSafe for StateConstraint
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