#[repr(i32)]pub enum StateAttachmentAuthorizationClassification {
Unspecified = 0,
SpoolWrite = 1,
}Expand description
Generated consumers classify every attachment kind before accepting its transfer. Attachments are ordinary spool writes and require both the transport’s spool-write authority and the existing per-author authorship, schema, provenance, integrity, ownership, and predecessor validation. A new enum value without a non-UNSPECIFIED option fails Rust and TypeScript generation, preventing an attachment lane from bypassing write authorization.
Variants§
Implementations§
Source§impl StateAttachmentAuthorizationClassification
impl StateAttachmentAuthorizationClassification
Sourcepub const fn is_valid(value: i32) -> bool
pub const fn is_valid(value: i32) -> bool
Returns true if value is a variant of StateAttachmentAuthorizationClassification.
Sourcepub fn from_i32(
value: i32,
) -> Option<StateAttachmentAuthorizationClassification>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32( value: i32, ) -> Option<StateAttachmentAuthorizationClassification>
Use the TryFrom<i32> implementation instead
Converts an i32 to a StateAttachmentAuthorizationClassification, or None if value is not a valid variant.
Source§impl StateAttachmentAuthorizationClassification
impl StateAttachmentAuthorizationClassification
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 StateAttachmentAuthorizationClassification
impl Clone for StateAttachmentAuthorizationClassification
Source§fn clone(&self) -> StateAttachmentAuthorizationClassification
fn clone(&self) -> StateAttachmentAuthorizationClassification
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more