Struct rusoto_iot::TestAuthorizationRequest
source · [−]pub struct TestAuthorizationRequest {
pub auth_infos: Vec<AuthInfo>,
pub client_id: Option<String>,
pub cognito_identity_pool_id: Option<String>,
pub policy_names_to_add: Option<Vec<String>>,
pub policy_names_to_skip: Option<Vec<String>>,
pub principal: Option<String>,
}
Fields
auth_infos: Vec<AuthInfo>
A list of authorization info objects. Simulating authorization will create a response for each authInfo
object in the list.
client_id: Option<String>
The MQTT client ID.
cognito_identity_pool_id: Option<String>
The Cognito identity pool ID.
policy_names_to_add: Option<Vec<String>>
When testing custom authorization, the policies specified here are treated as if they are attached to the principal being authorized.
policy_names_to_skip: Option<Vec<String>>
When testing custom authorization, the policies specified here are treated as if they are not attached to the principal being authorized.
principal: Option<String>
The principal. Valid principals are CertificateArn (arn:aws:iot:region:accountId:cert/certificateId), thingGroupArn (arn:aws:iot:region:accountId:thinggroup/groupName) and CognitoId (region:id).
Trait Implementations
sourceimpl Clone for TestAuthorizationRequest
impl Clone for TestAuthorizationRequest
sourcefn clone(&self) -> TestAuthorizationRequest
fn clone(&self) -> TestAuthorizationRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TestAuthorizationRequest
impl Debug for TestAuthorizationRequest
sourceimpl Default for TestAuthorizationRequest
impl Default for TestAuthorizationRequest
sourcefn default() -> TestAuthorizationRequest
fn default() -> TestAuthorizationRequest
Returns the “default value” for a type. Read more
sourceimpl PartialEq<TestAuthorizationRequest> for TestAuthorizationRequest
impl PartialEq<TestAuthorizationRequest> for TestAuthorizationRequest
sourcefn eq(&self, other: &TestAuthorizationRequest) -> bool
fn eq(&self, other: &TestAuthorizationRequest) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TestAuthorizationRequest) -> bool
fn ne(&self, other: &TestAuthorizationRequest) -> bool
This method tests for !=
.
sourceimpl Serialize for TestAuthorizationRequest
impl Serialize for TestAuthorizationRequest
impl StructuralPartialEq for TestAuthorizationRequest
Auto Trait Implementations
impl RefUnwindSafe for TestAuthorizationRequest
impl Send for TestAuthorizationRequest
impl Sync for TestAuthorizationRequest
impl Unpin for TestAuthorizationRequest
impl UnwindSafe for TestAuthorizationRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more