pub struct Etagged<T> {
pub etag: Option<EntityTag>,
pub value: Option<T>,
}
Expand description
Represents resources identified by etags.
Fields§
§etag: Option<EntityTag>
A possible etag.
It is possible, although unlikely, that a response which should contain an etag header does
not, or that etag header is invalid. In such cases this field will be None
.
value: Option<T>
The value identified by this etag.
This can be None
if we have already received the data which this etag identifies.
Trait Implementations§
source§impl<T: PartialEq> PartialEq for Etagged<T>
impl<T: PartialEq> PartialEq for Etagged<T>
impl<T> StructuralPartialEq for Etagged<T>
Auto Trait Implementations§
impl<T> Freeze for Etagged<T>where
T: Freeze,
impl<T> RefUnwindSafe for Etagged<T>where
T: RefUnwindSafe,
impl<T> Send for Etagged<T>where
T: Send,
impl<T> Sync for Etagged<T>where
T: Sync,
impl<T> Unpin for Etagged<T>where
T: Unpin,
impl<T> UnwindSafe for Etagged<T>where
T: UnwindSafe,
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