#[repr(i32)]pub enum Visibility {
Unspecified = 0,
Private = 1,
Internal = 2,
Public = 3,
}Expand description
Unified three-tier visibility for both spool EXISTENCE (visibility)
and spool HISTORY (state_visibility). One type, one numbering.
Canonical numbering is restrictiveness order (narrowest first): PRIVATE = 1, INTERNAL = 2, PUBLIC = 3
This replaces the former SpoolVisibility {PRIVATE=1, PUBLIC=2} and
SpoolStateVisibility {PUBLIC=1, INTERNAL=2, PRIVATE=3}. Those two
enums were differently numbered; a numeric cast between them published
private history as public. Consumers MUST map by variant NAME, never by
discriminant. Retired type names are not reused.
Tiers:
PRIVATE — scoped to the owning user / explicit grant holders.
INTERNAL — scoped to members of the containing org/team spool.
Expressible for existence only on org- or team-parented
spools; rejected for user-parented and root-level
(__users / __orgs) spools.
PUBLIC — everyone, including anonymous.
Coherence: PUBLIC history requires PUBLIC existence. A PRIVATE spool with INTERNAL history is the default (same grant-holder set) and is legal. There is no “signed-in Heddle users only” tier.
Variants§
Implementations§
Source§impl Visibility
impl Visibility
Source§impl Visibility
impl Visibility
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 Visibility
impl Clone for Visibility
Source§fn clone(&self) -> Visibility
fn clone(&self) -> Visibility
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more