#[repr(i32)]pub enum Scope {
Unspecified = 0,
Api = 1,
Version = 2,
Spec = 3,
ApiOperation = 4,
Deployment = 5,
Dependency = 6,
Definition = 7,
ExternalApi = 8,
Plugin = 9,
}
Expand description
Enumeration for the scope of the attribute representing the resource in the API Hub to which the attribute can be linked.
Variants§
Unspecified = 0
Scope Unspecified.
Api = 1
Attribute can be linked to an API.
Version = 2
Attribute can be linked to an API version.
Spec = 3
Attribute can be linked to a Spec.
ApiOperation = 4
Attribute can be linked to an API Operation.
Deployment = 5
Attribute can be linked to a Deployment.
Dependency = 6
Attribute can be linked to a Dependency.
Definition = 7
Attribute can be linked to a definition.
ExternalApi = 8
Attribute can be linked to a ExternalAPI.
Plugin = 9
Attribute can be linked to a Plugin.
Implementations§
Source§impl Scope
impl Scope
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 Ord for Scope
impl Ord for Scope
Source§impl PartialOrd for Scope
impl PartialOrd for Scope
impl Copy for Scope
impl Eq for Scope
impl StructuralPartialEq for Scope
Auto Trait Implementations§
impl Freeze for Scope
impl RefUnwindSafe for Scope
impl Send for Scope
impl Sync for Scope
impl Unpin for Scope
impl UnwindSafe for Scope
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request