Struct rabe::utils::policy::dnf::DnfPolicy[][src]

pub struct DnfPolicy {
    pub _terms: Vec<(Vec<String>, Gt, Gt, G1, G2)>,
}

A DNF policy for the MKE08 scheme and the BDABE scheme

Fields

_terms: Vec<(Vec<String>, Gt, Gt, G1, G2)>

Implementations

impl DnfPolicy[src]

pub fn new() -> DnfPolicy[src]

Returns a new DNF policy based on a textual dnf policy.

Arguments

  • policy - A policy in JSON format as String describing the policy

pub fn from_string<K: PublicAttributeKey>(
    _policy: &String,
    _pks: &Vec<K>,
    _language: PolicyLanguage
) -> Result<DnfPolicy, RabeError>
[src]

pub fn from_policy<K: PublicAttributeKey>(
    _json: &PolicyValue<'_>,
    _pks: &Vec<K>
) -> Result<DnfPolicy, RabeError>
[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<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,