[][src]Struct gotham_middleware_aws_sig_verify::Principal

pub struct Principal {
    pub partition: String,
    pub principal_type: PrincipalType,
}

Re-export aws_sig_verify so users don't have to compute versions. Principal for a given access key

Fields

partition: String

The partition this principal exists in.

principal_type: PrincipalType

Principal type -- role, assumed role, service, etc.

Implementations

impl Principal[src]

Re-export aws_sig_verify so users don't have to compute versions.

pub fn create_assumed_role(
    partition: String,
    account_id: String,
    path: String,
    name: String,
    session_name: String
) -> Principal
[src]

pub fn create_group(
    partition: String,
    account_id: String,
    path: String,
    name: String,
    group_id: String
) -> Principal
[src]

pub fn create_role(
    partition: String,
    account_id: String,
    path: String,
    name: String,
    role_id: String
) -> Principal
[src]

pub fn create_user(
    partition: String,
    account_id: String,
    path: String,
    name: String,
    user_id: String
) -> Principal
[src]

Trait Implementations

impl Clone for Principal[src]

impl Debug for Principal[src]

impl Display for Principal[src]

impl Eq for Principal[src]

impl PartialEq<Principal> for Principal[src]

impl StructuralEq for Principal[src]

impl StructuralPartialEq for Principal[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.