#[non_exhaustive]pub struct BearerTokenConfig {
pub token: String,
pub secret_version_for_token: String,
/* private fields */
}Available on crate feature
tools only.Expand description
Config for authentication using bearer token.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.token: StringOptional. The text token appended to the text Bearer to the request
Authorization header.
Session parameters
reference
can be used to pass the token dynamically, e.g.
$session.params.parameter-id.
secret_version_for_token: StringOptional. The name of the SecretManager secret version resource storing
the Bearer token. If this field is set, the token field will be
ignored. Format:
projects/{project}/secrets/{secret}/versions/{version}
Implementations§
Source§impl BearerTokenConfig
impl BearerTokenConfig
Trait Implementations§
Source§impl Clone for BearerTokenConfig
impl Clone for BearerTokenConfig
Source§fn clone(&self) -> BearerTokenConfig
fn clone(&self) -> BearerTokenConfig
Returns a duplicate 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 BearerTokenConfig
impl Debug for BearerTokenConfig
Source§impl Default for BearerTokenConfig
impl Default for BearerTokenConfig
Source§fn default() -> BearerTokenConfig
fn default() -> BearerTokenConfig
Returns the “default value” for a type. Read more
Source§impl Message for BearerTokenConfig
impl Message for BearerTokenConfig
Source§impl PartialEq for BearerTokenConfig
impl PartialEq for BearerTokenConfig
impl StructuralPartialEq for BearerTokenConfig
Auto Trait Implementations§
impl Freeze for BearerTokenConfig
impl RefUnwindSafe for BearerTokenConfig
impl Send for BearerTokenConfig
impl Sync for BearerTokenConfig
impl Unpin for BearerTokenConfig
impl UnsafeUnpin for BearerTokenConfig
impl UnwindSafe for BearerTokenConfig
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