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

pub struct Base64(_);

This type contains a base64 encoded structure. The publication protocol deals with objects in their base64 encoded form.

Note that we store this in a Bytes to make it cheap to clone this.

Methods

impl Base64[src]

pub fn from_content(content: &[u8]) -> Self[src]

pub fn to_bytes(&self) -> Bytes[src]

Decodes into bytes (e.g. for saving to disk for rcync)

pub fn to_hex_hash(&self) -> String[src]

pub fn to_encoded_hash(&self) -> HexEncodedHash[src]

pub fn size(&self) -> usize[src]

Trait Implementations

impl AsRef<str> for Base64[src]

impl From<String> for Base64[src]

impl<'_> From<&'_ Cert> for Base64[src]

impl<'_> From<&'_ Roa> for Base64[src]

impl<'_> From<&'_ Manifest> for Base64[src]

impl<'_> From<&'_ Crl> for Base64[src]

impl Clone for Base64[src]

impl Eq for Base64[src]

impl PartialEq<Base64> for Base64[src]

impl Debug for Base64[src]

impl Display for Base64[src]

impl StructuralPartialEq for Base64[src]

impl StructuralEq for Base64[src]

impl Serialize for Base64[src]

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

Auto Trait Implementations

impl Send for Base64

impl Sync for Base64

impl Unpin for Base64

impl UnwindSafe for Base64

impl RefUnwindSafe for Base64

Blanket Implementations

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 = !

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<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err