pub struct ItemSource {
pub state: ItemState,
pub data: Option<Item>,
}Expand description
Source data for copying an item onto the other side.
Fields§
§state: ItemStateMetadata and state for this item.
data: Option<Item>Data for this version of the item, if available.
Trait Implementations§
Source§impl Clone for ItemSource
impl Clone for ItemSource
Source§fn clone(&self) -> ItemSource
fn clone(&self) -> ItemSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ItemSource
impl Debug for ItemSource
Source§impl From<ItemWithData> for ItemSource
impl From<ItemWithData> for ItemSource
Source§fn from(item: ItemWithData) -> Self
fn from(item: ItemWithData) -> Self
Converts to this type from the input type.
Source§impl From<SideState> for ItemSource
impl From<SideState> for ItemSource
Source§impl PartialEq for ItemSource
impl PartialEq for ItemSource
Source§fn eq(&self, other: &ItemSource) -> bool
fn eq(&self, other: &ItemSource) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ItemSource
Auto Trait Implementations§
impl Freeze for ItemSource
impl RefUnwindSafe for ItemSource
impl Send for ItemSource
impl Sync for ItemSource
impl Unpin for ItemSource
impl UnsafeUnpin for ItemSource
impl UnwindSafe for ItemSource
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.