[][src]Struct krill::commons::remote::rfc8183::RepositoryResponse

pub struct RepositoryResponse { /* fields omitted */ }

Type representing a <repository_response/>

This is the response sent to a CA by the publication server. It contains the details needed by the CA to send publication messages to the server.

See https://tools.ietf.org/html/rfc8183#section-5.2.4

Implementations

impl RepositoryResponse[src]

pub fn new(
    tag: Option<String>,
    publisher_handle: Handle,
    id_cert: IdCert,
    service_uri: ServiceUri,
    repo_info: RepoInfo
) -> Self
[src]

Creates a new response.

pub fn tag(&self) -> &Option<String>[src]

pub fn publisher_handle(&self) -> &Handle[src]

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

pub fn service_uri(&self) -> &ServiceUri[src]

pub fn repo_info(&self) -> &RepoInfo[src]

impl RepositoryResponse[src]

pub fn validate<R>(reader: R) -> Result<Self, Error> where
    R: Read
[src]

Parses a <repository_response /> message.

impl RepositoryResponse[src]

pub fn encode_vec(&self) -> Vec<u8>[src]

Encodes the <repository_response/> to a Vec

pub fn save(&self, full_path: &PathBuf) -> Result<(), Error>[src]

Saves this as an XML file

Trait Implementations

impl Clone for RepositoryResponse[src]

impl Debug for RepositoryResponse[src]

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

impl Eq for RepositoryResponse[src]

impl PartialEq<RepositoryResponse> for RepositoryResponse[src]

impl Serialize for RepositoryResponse[src]

impl StructuralEq for RepositoryResponse[src]

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