Trait krill::cli::report::Report

source ·
pub trait Report: Serialize + ToString {
    // Provided methods
    fn text(&self) -> Result<String, ReportError> { ... }
    fn json(&self) -> String { ... }
    fn report(&self, format: ReportFormat) -> Result<String, ReportError> { ... }
}
Expand description

This trait should be implemented by all api responses, so that the response can be formatted for users.

Provided Methods§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Report for ChildRequest

source§

impl Report for ParentResponse

source§

impl Report for PublisherRequest

source§

impl Report for RepositoryResponse

Implementors§