Enum google_api_proto::google::cloud::iap::v1::attribute_propagation_settings::OutputCredentials
source · #[repr(i32)]pub enum OutputCredentials {
Unspecified = 0,
Header = 1,
Jwt = 2,
Rctoken = 3,
}
Expand description
Supported output credentials for attribute propagation. Each output credential maps to a “field” in the response. For example, selecting JWT will propagate all attributes in the IAP JWT, header in the headers, etc.
Variants§
Unspecified = 0
An output credential is required.
Header = 1
Propagate attributes in the headers with “x-goog-iap-attr-” prefix.
Jwt = 2
Propagate attributes in the JWT of the form: "additional_claims": { "my_attribute": ["value1", "value2"] }
Rctoken = 3
Propagate attributes in the RCToken of the form: "additional_claims": { "my_attribute": ["value1", "value2"] }
Implementations§
source§impl OutputCredentials
impl OutputCredentials
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 OutputCredentials
impl Clone for OutputCredentials
source§fn clone(&self) -> OutputCredentials
fn clone(&self) -> OutputCredentials
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for OutputCredentials
impl Debug for OutputCredentials
source§impl Default for OutputCredentials
impl Default for OutputCredentials
source§fn default() -> OutputCredentials
fn default() -> OutputCredentials
source§impl From<OutputCredentials> for i32
impl From<OutputCredentials> for i32
source§fn from(value: OutputCredentials) -> i32
fn from(value: OutputCredentials) -> i32
source§impl Hash for OutputCredentials
impl Hash for OutputCredentials
source§impl Ord for OutputCredentials
impl Ord for OutputCredentials
source§fn cmp(&self, other: &OutputCredentials) -> Ordering
fn cmp(&self, other: &OutputCredentials) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for OutputCredentials
impl PartialEq for OutputCredentials
source§fn eq(&self, other: &OutputCredentials) -> bool
fn eq(&self, other: &OutputCredentials) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for OutputCredentials
impl PartialOrd for OutputCredentials
source§fn partial_cmp(&self, other: &OutputCredentials) -> Option<Ordering>
fn partial_cmp(&self, other: &OutputCredentials) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for OutputCredentials
impl TryFrom<i32> for OutputCredentials
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<OutputCredentials, UnknownEnumValue>
fn try_from(value: i32) -> Result<OutputCredentials, UnknownEnumValue>
impl Copy for OutputCredentials
impl Eq for OutputCredentials
impl StructuralPartialEq for OutputCredentials
Auto Trait Implementations§
impl Freeze for OutputCredentials
impl RefUnwindSafe for OutputCredentials
impl Send for OutputCredentials
impl Sync for OutputCredentials
impl Unpin for OutputCredentials
impl UnwindSafe for OutputCredentials
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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