pub enum IfSequenceNumber {
LessThan(u64),
LessOrEqual(u64),
Equal(u64),
}
Expand description
Conditional request header based on the value of the object’s sequence number
Ref: https://docs.microsoft.com/en-us/rest/api/storageservices/put-page-from-url
Variants§
LessThan(u64)
If the object’s sequence number is less than the specified value, the request proceeds; otherwise it fails with SequenceNumberConditionNotMet error (HTTP status code 412 – Precondition Failed).
LessOrEqual(u64)
If the object’s sequence number is less than or equal to the specified value, the request proceeds; otherwise it fails with the SequenceNumberConditionNotMet error (HTTP status code 412 – Precondition Failed).
Equal(u64)
If the object’s sequence number is equal to the specified value, the request proceeds; otherwise it fails with SequenceNumberConditionNotMet error (HTTP status code 412 – Precondition Failed).
Trait Implementations§
source§impl Clone for IfSequenceNumber
impl Clone for IfSequenceNumber
source§fn clone(&self) -> IfSequenceNumber
fn clone(&self) -> IfSequenceNumber
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for IfSequenceNumber
impl Debug for IfSequenceNumber
source§impl Header for IfSequenceNumber
impl Header for IfSequenceNumber
fn name(&self) -> HeaderName
fn value(&self) -> HeaderValue
source§impl PartialEq for IfSequenceNumber
impl PartialEq for IfSequenceNumber
impl Copy for IfSequenceNumber
impl Eq for IfSequenceNumber
impl StructuralPartialEq for IfSequenceNumber
Auto Trait Implementations§
impl Freeze for IfSequenceNumber
impl RefUnwindSafe for IfSequenceNumber
impl Send for IfSequenceNumber
impl Sync for IfSequenceNumber
impl Unpin for IfSequenceNumber
impl UnwindSafe for IfSequenceNumber
Blanket Implementations§
source§impl<T> AsHeaders for Twhere
T: Header,
impl<T> AsHeaders for Twhere
T: Header,
type Iter = IntoIter<(HeaderName, HeaderValue)>
fn as_headers(&self) -> <T as AsHeaders>::Iter
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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
key
and return true
if they are equal.