[][src]Struct krill::pubd::Publisher

pub struct Publisher { /* fields omitted */ }

This type defines Publisher CAs that are allowed to publish.

Implementations

impl Publisher[src]

pub fn id_cert(&self) -> &IdCert[src]

pub fn base_uri(&self) -> &Rsync[src]

pub fn current_objects(&self) -> &CurrentObjects[src]

pub fn as_api_details(&self, handle: &PublisherHandle) -> PublisherDetails[src]

impl Publisher[src]

pub fn new(
    id_cert: IdCert,
    base_uri: Rsync,
    current_objects: CurrentObjects
) -> Self
[src]

impl Publisher[src]

pub fn list_current(&self) -> ListReply[src]

Gets an owned list reply containing all objects for this publisher. Note that cloning the uris and hashes is relatively cheap because of the use of Bytes as the underlying structure. Still, it may be good to change this implementation in future to return a structure that takes references, and only lives long enough to compose a response.

pub fn verify_delta(&self, delta_elements: &DeltaElements) -> KrillResult<()>[src]

Verifies a delta command and returns an event containing the delta, provided that it's legitimate.

pub fn apply_delta(&mut self, delta: DeltaElements)[src]

Trait Implementations

impl Clone for Publisher[src]

impl Debug for Publisher[src]

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

impl Eq for Publisher[src]

impl PartialEq<Publisher> for Publisher[src]

impl Serialize for Publisher[src]

impl StructuralEq for Publisher[src]

impl StructuralPartialEq for Publisher[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, 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.