pub struct Etag(/* private fields */);
Expand description
An identifier for a specific version of a resource.
Each time that a resource is read, it will return its current Etag
. The Etag
is a unique
identifier for the current version. An Etag
value is specific to a specific storage
implementation and instance. E.g.: they are opaque values that have no meaning across storages.
This is strongly inspired on the HTTP header of the same name.
It is assumed that all Etag
values are valid UTF-8 strings. As of HTTP 1.1, all header values
are restricted to visible characters in the ASCII range, so this is not a problem for CalDAV or
CardDAV storages. Other storages with no native Etag
concept should attempt to use the most
suitable approximation.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Etag
Auto Trait Implementations§
impl Freeze for Etag
impl RefUnwindSafe for Etag
impl Send for Etag
impl Sync for Etag
impl Unpin for Etag
impl UnwindSafe for Etag
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
source§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.
source§fn octets_into(self) -> Target
fn octets_into(self) -> Target
Performs an infallible conversion.