Struct ruma_client_api::r0::backup::get_latest_backup::Response [−][src]
pub struct Response {
pub algorithm: BackupAlgorithm,
pub count: UInt,
pub etag: String,
pub version: String,
}This is supported on crate feature
unstable-pre-spec only.Expand description
Data in the response from the get_latest_backup API endpoint.
Fields
algorithm: BackupAlgorithmThe algorithm used for storing backups.
count: UIntThe number of keys stored in the backup.
etag: StringAn opaque string represetning stored keys in the backup. Clients can compare it with the etag value they received in the request of their last key storage request.
version: StringThe backup version. This is an opaque string.
Implementations
Trait Implementations
type EndpointError = Error
type EndpointError = ErrorA type capturing the expected error conditions the server can return.
fn try_from_http_response<T: AsRef<[u8]>>(
response: Response<T>
) -> Result<Self, FromHttpResponseError<Error>>
fn try_from_http_response<T: AsRef<[u8]>>(
response: Response<T>
) -> Result<Self, FromHttpResponseError<Error>>Tries to convert the given http::Response into this response type.
Tries to convert this response into an http::Response. Read more
Auto Trait Implementations
impl RefUnwindSafe for Responseimpl UnwindSafe for ResponseBlanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more