versioning_precondition_response

Function versioning_precondition_response 

Source
pub fn versioning_precondition_response(
    snapshot: &DavCapabilitySnapshot,
    error: DavVersioningPrecondition,
) -> Result<DavResponse, DavXmlError>
Expand description

Composes a DAV error response for a typed RFC 3253 precondition through its snapshot.

ยงErrors

Returns DavXmlError when the XML error body cannot be encoded.