pub struct StagedFile {
pub history: StoreHistory,
pub id: Identifier,
}Fields§
§history: StoreHistory§id: IdentifierTrait Implementations§
Source§impl Clone for StagedFile
impl Clone for StagedFile
Source§fn clone(&self) -> StagedFile
fn clone(&self) -> StagedFile
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 StagedFile
impl Debug for StagedFile
Source§impl Described for StagedFile
impl Described for StagedFile
Source§impl<'de> Deserialize<'de> for StagedFile
impl<'de> Deserialize<'de> for StagedFile
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StagedFile, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StagedFile, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for StagedFile
Source§impl MemorySize for StagedFile
impl MemorySize for StagedFile
fn memory_size(&self) -> usize
Source§const INLINE_ONLY: bool = false
const INLINE_ONLY: bool = false
True only when every value occupies exactly
size_of::<Self>() bytes,
with no separately owned allocations or additional accounting charge.Source§impl PartialEq for StagedFile
impl PartialEq for StagedFile
Source§impl Serialize for StagedFile
impl Serialize for StagedFile
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for StagedFile
Source§impl Value for StagedFile
impl Value for StagedFile
fn write(&self, bytes: &mut Vec<u8>)
fn size(&self) -> usize
fn memory(input: &mut Reader<'_>) -> Result<usize, MessageError>
fn read(input: &mut Reader<'_>) -> Result<StagedFile, MessageError>
fn size_many(values: &[Self]) -> usize
fn write_many(values: &[Self], bytes: &mut Vec<u8>)
fn memory_many( input: &mut Reader<'_>, count: usize, ) -> Result<usize, MessageError>
fn read_many( input: &mut Reader<'_>, count: usize, ) -> Result<Vec<Self>, MessageError>
Auto Trait Implementations§
impl Freeze for StagedFile
impl RefUnwindSafe for StagedFile
impl Send for StagedFile
impl Sync for StagedFile
impl Unpin for StagedFile
impl UnsafeUnpin for StagedFile
impl UnwindSafe for StagedFile
Blanket Implementations§
impl<T> Allocation for T
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