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
source§fn eq(&self, other: &IfSequenceNumber) -> bool
fn eq(&self, other: &IfSequenceNumber) -> bool
self
and other
values to be equal, and is used
by ==
.