[][src]Struct krill::commons::api::EntitlementClass

pub struct EntitlementClass { /* fields omitted */ }

Implementations

impl EntitlementClass[src]

pub fn new(
    class_name: ResourceClassName,
    issuer: SigningCert,
    resource_set: ResourceSet,
    not_after: Time,
    issued: Vec<IssuedCert>
) -> Self
[src]

pub fn class_name(&self) -> &ResourceClassName[src]

pub fn issuer(&self) -> &SigningCert[src]

pub fn resource_set(&self) -> &ResourceSet[src]

pub fn not_after(&self) -> Time[src]

pub fn issued(&self) -> &Vec<IssuedCert>[src]

pub fn into_issuance_response(self, key: &PublicKey) -> Option<IssuanceResponse>[src]

Converts this into an IssuanceResponse for the given key. I.e. includes the issued certificate matching the given public key only. Returns a None if no match is found.

Trait Implementations

impl Clone for EntitlementClass[src]

impl Debug for EntitlementClass[src]

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

impl Display for EntitlementClass[src]

impl Eq for EntitlementClass[src]

impl PartialEq<EntitlementClass> for EntitlementClass[src]

impl Serialize for EntitlementClass[src]

impl StructuralEq for EntitlementClass[src]

impl StructuralPartialEq for EntitlementClass[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.