[][src]Struct octocrab::etag::Etagged

pub struct Etagged<T> {
    pub etag: Option<EntityTag>,
    pub value: Option<T>,
}

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

impl<T: Debug> Debug for Etagged<T>[src]

impl<T: PartialEq> PartialEq<Etagged<T>> for Etagged<T>[src]

impl<T> StructuralPartialEq for Etagged<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Etagged<T> where
    T: RefUnwindSafe
[src]

impl<T> Send for Etagged<T> where
    T: Send
[src]

impl<T> Sync for Etagged<T> where
    T: Sync
[src]

impl<T> Unpin for Etagged<T> where
    T: Unpin
[src]

impl<T> UnwindSafe for Etagged<T> where
    T: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.