Enum googapis::google::cloud::scheduler::v1::http_target::AuthorizationHeader [−][src]
pub enum AuthorizationHeader {
OauthToken(OAuthToken),
OidcToken(OidcToken),
}
Expand description
The mode for generating an Authorization
header for HTTP requests.
If specified, all Authorization
headers in the [HttpTarget.headers][google.cloud.scheduler.v1.HttpTarget.headers]
field will be overridden.
Variants
OauthToken(OAuthToken)
If specified, an
OAuth token
will be generated and attached as an Authorization
header in the HTTP
request.
This type of authorization should generally only be used when calling Google APIs hosted on *.googleapis.com.
Tuple Fields of OauthToken
0: OAuthToken
OidcToken(OidcToken)
If specified, an
[OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
token will be generated and attached as an Authorization
header in the
HTTP request.
This type of authorization can be used for many scenarios, including calling Cloud Run, or endpoints where you intend to validate the token yourself.
Tuple Fields of OidcToken
0: OidcToken
Implementations
pub fn merge<B>(
field: &mut Option<AuthorizationHeader>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for AuthorizationHeader
impl Send for AuthorizationHeader
impl Sync for AuthorizationHeader
impl Unpin for AuthorizationHeader
impl UnwindSafe for AuthorizationHeader
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more