pub struct BindRule2 {
pub key: String,
pub condition: Condition,
pub values: Vec<NodePropertyValue>,
}
Expand description
Represents a bind rule in a parent specification.
Fields§
§key: String
§condition: Condition
§values: Vec<NodePropertyValue>
Trait Implementations§
Source§impl Encodable for BindRule2
impl Encodable for BindRule2
Source§type Encoded = WireBindRule2
type Encoded = WireBindRule2
The wire type for the value.
§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
encoding instead of calling
encode
. Read moreSource§impl EncodableOption for Box<BindRule2>
impl EncodableOption for Box<BindRule2>
Source§type EncodedOption = WireBox<WireBindRule2>
type EncodedOption = WireBox<WireBindRule2>
The wire type for the optional value.
Source§impl<___E> EncodeOption<___E> for Box<BindRule2>
impl<___E> EncodeOption<___E> for Box<BindRule2>
Source§fn encode_option(
this: Option<&mut Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Self::EncodedOption>,
) -> Result<(), EncodeError>
fn encode_option( this: Option<&mut Self>, encoder: &mut ___E, out: &mut MaybeUninit<Self::EncodedOption>, ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl TakeFrom<WireBindRule2> for BindRule2
impl TakeFrom<WireBindRule2> for BindRule2
Source§fn take_from(from: &WireBindRule2) -> Self
fn take_from(from: &WireBindRule2) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreAuto Trait Implementations§
impl Freeze for BindRule2
impl RefUnwindSafe for BindRule2
impl Send for BindRule2
impl Sync for BindRule2
impl Unpin for BindRule2
impl UnwindSafe for BindRule2
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