pub enum PatchFallback {
GetThenReconcile,
PutWholeObject,
}Available on crate feature
transport only.Expand description
What a client should do after a PATCH that the peer refused.
In case a PATCH request fails, the client is expected to call the GET method to check the state of the object in the other party’s system. If the object doesn’t exist, the client should do a PUT.
Spec: 2.3.0 §transport_and_format_patch
Variants§
GetThenReconcile
GET the object to see what the peer has.
PutWholeObject
The object does not exist at the peer; PUT the whole object.
Trait Implementations§
Source§impl Clone for PatchFallback
impl Clone for PatchFallback
Source§fn clone(&self) -> PatchFallback
fn clone(&self) -> PatchFallback
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PatchFallback
Source§impl Debug for PatchFallback
impl Debug for PatchFallback
impl Eq for PatchFallback
Source§impl PartialEq for PatchFallback
impl PartialEq for PatchFallback
impl StructuralPartialEq for PatchFallback
Auto Trait Implementations§
impl Freeze for PatchFallback
impl RefUnwindSafe for PatchFallback
impl Send for PatchFallback
impl Sync for PatchFallback
impl Unpin for PatchFallback
impl UnsafeUnpin for PatchFallback
impl UnwindSafe for PatchFallback
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.