#[repr(i32)]pub enum AuthorizationAccess {
Unspecified = 0,
Public = 1,
AuthenticatedPrincipal = 2,
PlannedUndecided = 3,
}Expand description
Authorization is declarative contract metadata. Producers still own runtime enforcement; signing identity and signing tier remain independent fields.
Variants§
Unspecified = 0
Public = 1
No established user account is required. A producer may still mint an anonymous transport principal for abuse controls or ownership binding.
AuthenticatedPrincipal = 2
PlannedUndecided = 3
The service is planned, but its authorization policy has not been decided. This value is invalid for shipped services.
Implementations§
Source§impl AuthorizationAccess
impl AuthorizationAccess
Sourcepub const fn is_valid(value: i32) -> bool
pub const fn is_valid(value: i32) -> bool
Returns true if value is a variant of AuthorizationAccess.
Sourcepub fn from_i32(value: i32) -> Option<AuthorizationAccess>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<AuthorizationAccess>
Use the TryFrom<i32> implementation instead
Converts an i32 to a AuthorizationAccess, or None if value is not a valid variant.
Source§impl AuthorizationAccess
impl AuthorizationAccess
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 AuthorizationAccess
impl Clone for AuthorizationAccess
Source§fn clone(&self) -> AuthorizationAccess
fn clone(&self) -> AuthorizationAccess
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more