pub enum AnnotationVisibility {
Public,
Internal,
TeamScoped {
team_id: String,
},
Restricted {
scope_label: String,
},
}Expand description
Visibility scope for an annotation. Determines which audiences see it on read paths and during bridge export.
Public is the default — that matches pre-W1 behavior, where every
annotation was effectively public, so legacy data decodes unchanged.
External references (annotations that point to external systems) inherit
the scope of their parent annotation.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for AnnotationVisibility
impl Clone for AnnotationVisibility
Source§fn clone(&self) -> AnnotationVisibility
fn clone(&self) -> AnnotationVisibility
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 moreSource§impl Debug for AnnotationVisibility
impl Debug for AnnotationVisibility
Source§impl Default for AnnotationVisibility
impl Default for AnnotationVisibility
Source§fn default() -> AnnotationVisibility
fn default() -> AnnotationVisibility
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AnnotationVisibility
impl<'de> Deserialize<'de> for AnnotationVisibility
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AnnotationVisibility
impl PartialEq for AnnotationVisibility
Source§fn eq(&self, other: &AnnotationVisibility) -> bool
fn eq(&self, other: &AnnotationVisibility) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AnnotationVisibility
impl Serialize for AnnotationVisibility
impl Eq for AnnotationVisibility
impl StructuralPartialEq for AnnotationVisibility
Auto Trait Implementations§
impl Freeze for AnnotationVisibility
impl RefUnwindSafe for AnnotationVisibility
impl Send for AnnotationVisibility
impl Sync for AnnotationVisibility
impl Unpin for AnnotationVisibility
impl UnsafeUnpin for AnnotationVisibility
impl UnwindSafe for AnnotationVisibility
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