pub enum AnonymousAccess {
Refused,
Authorized,
Unauthenticated,
}Expand description
What a service does with an unsigned request to one of its operations
(crate::service::AwsService::anonymous_access).
Variants§
Refused
Refused for its missing credentials before anything else looks at it.
Authorized
Authorized as the anonymous principal against the resource’s policy (and ACLs), like any other caller.
Unauthenticated
Needs no credentials: served without authorization.
Implementations§
Source§impl AnonymousAccess
impl AnonymousAccess
Sourcepub fn for_operation(service: &str, operation: &str) -> Self
pub fn for_operation(service: &str, operation: &str) -> Self
The model’s verdict for operation of service (by signing name):
AnonymousAccess::Unauthenticated for an operation marked
smithy.api#optionalAuth or smithy.api#auth: [],
AnonymousAccess::Refused otherwise.
Trait Implementations§
Source§impl Clone for AnonymousAccess
impl Clone for AnonymousAccess
impl Copy for AnonymousAccess
Source§impl Debug for AnonymousAccess
impl Debug for AnonymousAccess
impl Eq for AnonymousAccess
Source§impl PartialEq for AnonymousAccess
impl PartialEq for AnonymousAccess
impl StructuralPartialEq for AnonymousAccess
Auto Trait Implementations§
impl Forget for AnonymousAccess
impl Freeze for AnonymousAccess
impl Move for AnonymousAccess
impl RefUnwindSafe for AnonymousAccess
impl Send for AnonymousAccess
impl Sync for AnonymousAccess
impl Unpin for AnonymousAccess
impl UnsafeUnpin for AnonymousAccess
impl UnwindSafe for AnonymousAccess
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<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
Compare self to
key and return true if they are equal.