pub struct BehaviorAssignment {
pub id: String,
pub operation_id: String,
pub target: String,
pub kind: i32,
pub value_id: String,
pub source: Option<BehaviorSource>,
pub provenance: i32,
}Fields§
§id: String§operation_id: String§target: StringSyntactic address (e.g. SavePlan.git_scope), not inferred type resolution.
kind: i32§value_id: String§source: Option<BehaviorSource>§provenance: i32Implementations§
Source§impl BehaviorAssignment
impl BehaviorAssignment
Sourcepub fn kind(&self) -> Kind
pub fn kind(&self) -> Kind
Returns the enum value of kind, or the default if the field is set to an invalid enum value.
Sourcepub fn provenance(&self) -> BehaviorProvenance
pub fn provenance(&self) -> BehaviorProvenance
Returns the enum value of provenance, or the default if the field is set to an invalid enum value.
Sourcepub fn set_provenance(&mut self, value: BehaviorProvenance)
pub fn set_provenance(&mut self, value: BehaviorProvenance)
Sets provenance to the provided enum value.
Trait Implementations§
Source§impl Clone for BehaviorAssignment
impl Clone for BehaviorAssignment
Source§impl Debug for BehaviorAssignment
impl Debug for BehaviorAssignment
Source§impl Default for BehaviorAssignment
impl Default for BehaviorAssignment
impl Eq for BehaviorAssignment
Source§impl Hash for BehaviorAssignment
impl Hash for BehaviorAssignment
Source§impl Message for BehaviorAssignment
impl Message for BehaviorAssignment
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for BehaviorAssignment
impl PartialEq for BehaviorAssignment
impl StructuralPartialEq for BehaviorAssignment
Auto Trait Implementations§
impl Freeze for BehaviorAssignment
impl RefUnwindSafe for BehaviorAssignment
impl Send for BehaviorAssignment
impl Sync for BehaviorAssignment
impl Unpin for BehaviorAssignment
impl UnsafeUnpin for BehaviorAssignment
impl UnwindSafe for BehaviorAssignment
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