pub struct ItemVersion {
pub href: Href,
pub etag: Etag,
}Expand description
Reference to a specific version of an Item inside a collection.
Fields§
§href: HrefPath to the item.
etag: EtagEtag for the item.
Implementations§
Source§impl ItemVersion
impl ItemVersion
Sourcepub fn new(href: Href, etag: Etag) -> ItemVersion
pub fn new(href: Href, etag: Etag) -> ItemVersion
Create a new instance with the given values.
Trait Implementations§
Source§impl Clone for ItemVersion
impl Clone for ItemVersion
Source§fn clone(&self) -> ItemVersion
fn clone(&self) -> ItemVersion
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ItemVersion
impl Debug for ItemVersion
Source§impl From<ItemState> for ItemVersion
impl From<ItemState> for ItemVersion
Source§impl From<ItemWithData> for ItemVersion
impl From<ItemWithData> for ItemVersion
Source§fn from(value: ItemWithData) -> Self
fn from(value: ItemWithData) -> Self
Converts to this type from the input type.
Source§impl PartialEq<ItemVersion> for ItemForPlanning
impl PartialEq<ItemVersion> for ItemForPlanning
Source§impl PartialEq<ItemVersion> for ItemState
impl PartialEq<ItemVersion> for ItemState
Source§impl PartialEq for ItemVersion
impl PartialEq for ItemVersion
impl StructuralPartialEq for ItemVersion
Auto Trait Implementations§
impl Freeze for ItemVersion
impl RefUnwindSafe for ItemVersion
impl Send for ItemVersion
impl Sync for ItemVersion
impl Unpin for ItemVersion
impl UnwindSafe for ItemVersion
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§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.