Struct scratchstack_aspen::Policy[][src]

pub struct Policy {
    pub version: Option<String>,
    pub id: Option<String>,
    pub statement: StatementList,
}

The top-level structure for holding an Aspen policy.

Fields

version: Option<String>

The version of the policy. Currently allowed values are 2008-10-17 and 2012-10-17. Features such as policy variables are only available with version 2012-10-17 (or later, should a newer version be published). If omitted, this is equivalent to 2008-10-17.

id: Option<String>

An optional identifier for the policy. Some services may require this element and have uniqueness requirements.

statement: StatementList

One or more statements describing the policy. Aspen allows single statements to be encoded directly as a map instead of being enclosed in a list.

Trait Implementations

impl Debug for Policy[src]

impl<'de> Deserialize<'de> for Policy[src]

impl Display for Policy[src]

impl FromStr for Policy[src]

type Err = Error

The associated error which can be returned from parsing.

impl PartialEq<Policy> for Policy[src]

impl Serialize for Policy[src]

impl StructuralPartialEq for Policy[src]

Auto Trait Implementations

impl RefUnwindSafe for Policy

impl Send for Policy

impl Sync for Policy

impl Unpin for Policy

impl UnwindSafe for Policy

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<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

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.