#[non_exhaustive]pub enum WellKnownRoots {
Unspecified,
None,
PublicRoots,
UnknownValue(UnknownValue),
}Expand description
Enum to specify the well known roots to use for server certificate validation.
§Working with unknown values
This enum is defined as #[non_exhaustive] because Google Cloud may add
additional enum variants at any time. Adding new variants is not considered
a breaking change. Applications should write their code in anticipation of:
- New values appearing in future releases of the client library, and
- New values received dynamically, without application changes.
Please consult the Working with enums section in the user guide for some guidelines.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unspecified
Equivalent to NONE.
None
The BackendService will only validate server certificates against roots specified in TrustConfig.
PublicRoots
The BackendService uses a set of well-known public roots, in addition to any roots specified in the trustConfig field, when validating the server certificates presented by the backend. Validation with these roots is only considered when the TlsSettings.sni field in the BackendService is set.
The well-known roots are a set of root CAs managed by Google. CAs in this set can be added or removed without notice.
UnknownValue(UnknownValue)
If set, the enum was initialized with an unknown value.
Applications can examine the value using WellKnownRoots::value or WellKnownRoots::name.
Implementations§
Trait Implementations§
Source§impl Clone for WellKnownRoots
impl Clone for WellKnownRoots
Source§fn clone(&self) -> WellKnownRoots
fn clone(&self) -> WellKnownRoots
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WellKnownRoots
impl Debug for WellKnownRoots
Source§impl Default for WellKnownRoots
impl Default for WellKnownRoots
Source§impl<'de> Deserialize<'de> for WellKnownRoots
impl<'de> Deserialize<'de> for WellKnownRoots
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>,
Source§impl Display for WellKnownRoots
impl Display for WellKnownRoots
Source§impl From<&str> for WellKnownRoots
impl From<&str> for WellKnownRoots
Source§impl From<i32> for WellKnownRoots
impl From<i32> for WellKnownRoots
Source§impl PartialEq for WellKnownRoots
impl PartialEq for WellKnownRoots
Source§impl Serialize for WellKnownRoots
impl Serialize for WellKnownRoots
impl StructuralPartialEq for WellKnownRoots
Auto Trait Implementations§
impl Freeze for WellKnownRoots
impl RefUnwindSafe for WellKnownRoots
impl Send for WellKnownRoots
impl Sync for WellKnownRoots
impl Unpin for WellKnownRoots
impl UnsafeUnpin for WellKnownRoots
impl UnwindSafe for WellKnownRoots
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.