Enum inspect::SensitivityLevel
source · pub enum SensitivityLevel {
Safe,
Unspecified,
Sensitive,
}
Expand description
The sensitivity level for an inspection node or request.
Requests will only return nodes at or below their sensitivity level.
For example, a request set to SensitivityLevel::Safe
will not return nodes
with SensitivityLevel::Sensitive
or SensitivityLevel::Unknown
.
Variants§
Safe
The node doesn’t contain sensitive information and is always safe to expose.
Unspecified
The node might contain sensitive information and should only be exposed in a secure context.
Sensitive
The node contains sensitive information and should only be exposed in a secure context.
Trait Implementations§
source§impl<'arbitrary> Arbitrary<'arbitrary> for SensitivityLevel
impl<'arbitrary> Arbitrary<'arbitrary> for SensitivityLevel
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§impl Clone for SensitivityLevel
impl Clone for SensitivityLevel
source§fn clone(&self) -> SensitivityLevel
fn clone(&self) -> SensitivityLevel
Returns a copy of the value. Read more
1.0.0 · 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 SensitivityLevel
impl Debug for SensitivityLevel
source§impl Default for SensitivityLevel
impl Default for SensitivityLevel
source§fn default() -> SensitivityLevel
fn default() -> SensitivityLevel
Returns the “default value” for a type. Read more
source§impl DefaultEncoding for SensitivityLevel
impl DefaultEncoding for SensitivityLevel
source§type Encoding = OneofEncoder
type Encoding = OneofEncoder
The encoding to use for the serialization. Read more
source§impl DescribeOneof for SensitivityLevel
impl DescribeOneof for SensitivityLevel
source§const DESCRIPTION: MessageDescription<'static> = _
const DESCRIPTION: MessageDescription<'static> = _
The protobuf message description for this type.
source§impl<'encoding> OneofDecode<'encoding, Resource> for SensitivityLevel
impl<'encoding> OneofDecode<'encoding, Resource> for SensitivityLevel
source§fn read_variant(
item: &mut InplaceOption<'_, Self>,
n: u32,
field: FieldReader<'encoding, '_, Resource>,
) -> Result<()>
fn read_variant( item: &mut InplaceOption<'_, Self>, n: u32, field: FieldReader<'encoding, '_, Resource>, ) -> Result<()>
Read the specified variant from the reader.
source§impl OneofEncode<Resource> for SensitivityLevel
impl OneofEncode<Resource> for SensitivityLevel
source§fn write_variant(self, writer: MessageWriter<'_, '_, Resource>)
fn write_variant(self, writer: MessageWriter<'_, '_, Resource>)
Write the variant to the writer.
source§fn compute_variant_size(&mut self, sizer: MessageSizer<'_>)
fn compute_variant_size(&mut self, sizer: MessageSizer<'_>)
Compute the size of the variant.
source§impl Ord for SensitivityLevel
impl Ord for SensitivityLevel
source§fn cmp(&self, other: &SensitivityLevel) -> Ordering
fn cmp(&self, other: &SensitivityLevel) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for SensitivityLevel
impl PartialEq for SensitivityLevel
source§impl PartialOrd for SensitivityLevel
impl PartialOrd for SensitivityLevel
impl Copy for SensitivityLevel
impl Downcast<SensitivityLevel> for SensitivityLevel
impl Eq for SensitivityLevel
impl StructuralPartialEq for SensitivityLevel
Auto Trait Implementations§
impl Freeze for SensitivityLevel
impl RefUnwindSafe for SensitivityLevel
impl Send for SensitivityLevel
impl Sync for SensitivityLevel
impl Unpin for SensitivityLevel
impl UnwindSafe for SensitivityLevel
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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> MeshField for Twhere
T: DefaultEncoding + Any + Send + 'static,
<T as DefaultEncoding>::Encoding: FieldEncode<T, Resource> + for<'a> FieldDecode<'a, T, Resource> + Send + Sync,
impl<T> MeshField for Twhere
T: DefaultEncoding + Any + Send + 'static,
<T as DefaultEncoding>::Encoding: FieldEncode<T, Resource> + for<'a> FieldDecode<'a, T, Resource> + Send + Sync,
type Encoding = <T as DefaultEncoding>::Encoding
source§impl<T> MeshPayload for Twhere
T: DefaultEncoding + Any + Send + 'static,
<T as DefaultEncoding>::Encoding: MessageEncode<T, Resource> + for<'a> MessageDecode<'a, T, Resource> + FieldEncode<T, Resource> + for<'a> FieldDecode<'a, T, Resource> + Send + Sync,
impl<T> MeshPayload for Twhere
T: DefaultEncoding + Any + Send + 'static,
<T as DefaultEncoding>::Encoding: MessageEncode<T, Resource> + for<'a> MessageDecode<'a, T, Resource> + FieldEncode<T, Resource> + for<'a> FieldDecode<'a, T, Resource> + Send + Sync,
type Encoding = <T as DefaultEncoding>::Encoding
source§impl<T> SerializeMessage for Twhere
T: MeshPayload,
impl<T> SerializeMessage for Twhere
T: MeshPayload,
source§fn compute_message_size(&mut self, sizer: MessageSizer<'_>)
fn compute_message_size(&mut self, sizer: MessageSizer<'_>)
Computes the message size, as in
MessageEncode::compute_message_size
.source§fn write_message(self, writer: MessageWriter<'_, '_, Resource>)
fn write_message(self, writer: MessageWriter<'_, '_, Resource>)
Writes the message, as in
MessageEncode::write_message
.source§fn extract(self) -> <T as SerializeMessage>::Concrete
fn extract(self) -> <T as SerializeMessage>::Concrete
Extract the concrete message.