#[non_exhaustive]pub struct TestInvokeAuthorizerInput {
pub authorizer_name: Option<String>,
pub token: Option<String>,
pub token_signature: Option<String>,
pub http_context: Option<HttpContext>,
pub mqtt_context: Option<MqttContext>,
pub tls_context: Option<TlsContext>,
}
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.The custom authorizer name.
token: Option<String>
The token returned by your custom authentication service.
token_signature: Option<String>
The signature made with the token and your custom authentication service's private key. This value must be Base-64-encoded.
http_context: Option<HttpContext>
Specifies a test HTTP authorization request.
mqtt_context: Option<MqttContext>
Specifies a test MQTT authorization request.
tls_context: Option<TlsContext>
Specifies a test TLS authorization request.
Implementations§
source§impl TestInvokeAuthorizerInput
impl TestInvokeAuthorizerInput
The custom authorizer name.
sourcepub fn token_signature(&self) -> Option<&str>
pub fn token_signature(&self) -> Option<&str>
The signature made with the token and your custom authentication service's private key. This value must be Base-64-encoded.
sourcepub fn http_context(&self) -> Option<&HttpContext>
pub fn http_context(&self) -> Option<&HttpContext>
Specifies a test HTTP authorization request.
sourcepub fn mqtt_context(&self) -> Option<&MqttContext>
pub fn mqtt_context(&self) -> Option<&MqttContext>
Specifies a test MQTT authorization request.
sourcepub fn tls_context(&self) -> Option<&TlsContext>
pub fn tls_context(&self) -> Option<&TlsContext>
Specifies a test TLS authorization request.
source§impl TestInvokeAuthorizerInput
impl TestInvokeAuthorizerInput
sourcepub fn builder() -> TestInvokeAuthorizerInputBuilder
pub fn builder() -> TestInvokeAuthorizerInputBuilder
Creates a new builder-style object to manufacture TestInvokeAuthorizerInput
.
Trait Implementations§
source§impl Clone for TestInvokeAuthorizerInput
impl Clone for TestInvokeAuthorizerInput
source§fn clone(&self) -> TestInvokeAuthorizerInput
fn clone(&self) -> TestInvokeAuthorizerInput
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 TestInvokeAuthorizerInput
impl Debug for TestInvokeAuthorizerInput
source§impl PartialEq for TestInvokeAuthorizerInput
impl PartialEq for TestInvokeAuthorizerInput
source§fn eq(&self, other: &TestInvokeAuthorizerInput) -> bool
fn eq(&self, other: &TestInvokeAuthorizerInput) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TestInvokeAuthorizerInput
Auto Trait Implementations§
impl RefUnwindSafe for TestInvokeAuthorizerInput
impl Send for TestInvokeAuthorizerInput
impl Sync for TestInvokeAuthorizerInput
impl Unpin for TestInvokeAuthorizerInput
impl UnwindSafe for TestInvokeAuthorizerInput
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> 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>
Creates a shared type from an unshared type.