pub enum PolicyVersion {
None,
V2008_10_17,
V2012_10_17,
}
Expand description
Aspen policy versions as represented in an Aspen policy document.
Variants§
None
No policy version specified. Equivalent to PolicyVersion::V2008_10_17, but is not serialized in the policy document.
V2008_10_17
Aspen policy version 2008-10-17. This is the default version. It does not support policy variables.
V2012_10_17
Aspen policy version 2012-10-17. This version supports policy variables.
Implementations§
Trait Implementations§
source§impl Clone for PolicyVersion
impl Clone for PolicyVersion
source§fn clone(&self) -> PolicyVersion
fn clone(&self) -> PolicyVersion
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PolicyVersion
impl Debug for PolicyVersion
source§impl Default for PolicyVersion
impl Default for PolicyVersion
source§impl<'de> Deserialize<'de> for PolicyVersion
impl<'de> Deserialize<'de> for PolicyVersion
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for PolicyVersion
impl Display for PolicyVersion
source§impl FromStr for PolicyVersion
impl FromStr for PolicyVersion
source§impl Hash for PolicyVersion
impl Hash for PolicyVersion
source§impl PartialEq<PolicyVersion> for PolicyVersion
impl PartialEq<PolicyVersion> for PolicyVersion
source§fn eq(&self, other: &PolicyVersion) -> bool
fn eq(&self, other: &PolicyVersion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.