#[repr(i32)]pub enum StateAttachmentKind {
Unspecified = 0,
Context = 1,
RiskSignals = 2,
ReviewSignatures = 3,
Discussions = 4,
StructuredConflicts = 5,
SemanticIndex = 6,
Signature = 7,
}Variants§
Unspecified = 0
Context = 1
RiskSignals = 2
ReviewSignatures = 3
Discussions = 4
StructuredConflicts = 5
SemanticIndex = 6
Signature = 7
Implementations§
Source§impl StateAttachmentKind
impl StateAttachmentKind
Sourcepub const fn is_valid(value: i32) -> bool
pub const fn is_valid(value: i32) -> bool
Returns true if value is a variant of StateAttachmentKind.
Sourcepub fn from_i32(value: i32) -> Option<StateAttachmentKind>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<StateAttachmentKind>
Use the TryFrom<i32> implementation instead
Converts an i32 to a StateAttachmentKind, or None if value is not a valid variant.
Source§impl StateAttachmentKind
impl StateAttachmentKind
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for StateAttachmentKind
impl Clone for StateAttachmentKind
Source§fn clone(&self) -> StateAttachmentKind
fn clone(&self) -> StateAttachmentKind
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 moreimpl Copy for StateAttachmentKind
Source§impl Debug for StateAttachmentKind
impl Debug for StateAttachmentKind
Source§impl Default for StateAttachmentKind
impl Default for StateAttachmentKind
Source§fn default() -> StateAttachmentKind
fn default() -> StateAttachmentKind
Returns the “default value” for a type. Read more
impl Eq for StateAttachmentKind
Source§impl From<StateAttachmentKind> for i32
impl From<StateAttachmentKind> for i32
Source§fn from(value: StateAttachmentKind) -> i32
fn from(value: StateAttachmentKind) -> i32
Converts to this type from the input type.
Source§impl Hash for StateAttachmentKind
impl Hash for StateAttachmentKind
Source§impl Ord for StateAttachmentKind
impl Ord for StateAttachmentKind
Source§fn cmp(&self, other: &StateAttachmentKind) -> Ordering
fn cmp(&self, other: &StateAttachmentKind) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StateAttachmentKind
impl PartialEq for StateAttachmentKind
Source§impl PartialOrd for StateAttachmentKind
impl PartialOrd for StateAttachmentKind
impl StructuralPartialEq for StateAttachmentKind
Source§impl TryFrom<i32> for StateAttachmentKind
impl TryFrom<i32> for StateAttachmentKind
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<StateAttachmentKind, UnknownEnumValue>
fn try_from(value: i32) -> Result<StateAttachmentKind, UnknownEnumValue>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for StateAttachmentKind
impl RefUnwindSafe for StateAttachmentKind
impl Send for StateAttachmentKind
impl Sync for StateAttachmentKind
impl Unpin for StateAttachmentKind
impl UnsafeUnpin for StateAttachmentKind
impl UnwindSafe for StateAttachmentKind
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