pub struct DavPreferencePlan {
pub return_minimal: bool,
pub return_representation: bool,
pub depth_no_root: bool,
}Expand description
Applicable RFC 8144 preferences for one request.
Fields§
§return_minimal: bool§return_representation: bool§depth_no_root: boolImplementations§
Source§impl DavPreferencePlan
impl DavPreferencePlan
Sourcepub fn preference_applied_header(
&self,
applied: DavPreferenceSet,
) -> Option<HeaderValue>
pub fn preference_applied_header( &self, applied: DavPreferenceSet, ) -> Option<HeaderValue>
Canonical Preference-Applied value for the subset actually honored by the response.
Request planning only determines eligibility. The response composer must pass a set that
reflects actual behavior; for example, a failed PROPPATCH must not claim that
return=minimal was applied, and return=representation is applied only when a current
representation is returned.
Trait Implementations§
Source§impl Clone for DavPreferencePlan
impl Clone for DavPreferencePlan
Source§fn clone(&self) -> DavPreferencePlan
fn clone(&self) -> DavPreferencePlan
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DavPreferencePlan
impl Debug for DavPreferencePlan
Source§impl Default for DavPreferencePlan
impl Default for DavPreferencePlan
Source§fn default() -> DavPreferencePlan
fn default() -> DavPreferencePlan
Returns the “default value” for a type. Read more
Source§impl PartialEq for DavPreferencePlan
impl PartialEq for DavPreferencePlan
impl Eq for DavPreferencePlan
impl StructuralPartialEq for DavPreferencePlan
Auto Trait Implementations§
impl Freeze for DavPreferencePlan
impl RefUnwindSafe for DavPreferencePlan
impl Send for DavPreferencePlan
impl Sync for DavPreferencePlan
impl Unpin for DavPreferencePlan
impl UnwindSafe for DavPreferencePlan
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.