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: StatementListOne 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<'de> Deserialize<'de> for Policy[src]
impl<'de> Deserialize<'de> for Policy[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl StructuralPartialEq for Policy[src]
impl StructuralPartialEq for Policy[src]Auto Trait Implementations
impl RefUnwindSafe for Policy
impl RefUnwindSafe for Policyimpl UnwindSafe for Policy
impl UnwindSafe for PolicyBlanket Implementations
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]