[−][src]Struct krill::pubd::Publisher
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]
id_cert: IdCert,
base_uri: Rsync,
current_objects: CurrentObjects
) -> Self
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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for Publisher
[src]
impl PartialEq<Publisher> for Publisher
[src]
impl Serialize for Publisher
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for Publisher
[src]
impl StructuralPartialEq for Publisher
[src]
Auto Trait Implementations
impl RefUnwindSafe for Publisher
impl Send for Publisher
impl Sync for Publisher
impl Unpin for Publisher
impl UnwindSafe for Publisher
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,