#[non_exhaustive]pub struct CellWrite<'a> {
pub receipt: &'a [u8],
pub version: Option<(&'a str, &'a str)>,
}Expand description
One cell write of Store::put_cells: a receipt and, optionally, the version it
becomes. Since 0.4.3.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.receipt: &'a [u8]The receipt’s JSON bytes, as for put_receipt.
version: Option<(&'a str, &'a str)>Some((cell_id, tx)): also put_version(cell_id, tx, <this receipt's hash>).
Implementations§
Trait Implementations§
impl<'a> Copy for CellWrite<'a>
impl<'a> Eq for CellWrite<'a>
impl<'a> StructuralPartialEq for CellWrite<'a>
Auto Trait Implementations§
impl<'a> Forget for CellWrite<'a>
impl<'a> Freeze for CellWrite<'a>
impl<'a> Move for CellWrite<'a>
impl<'a> RefUnwindSafe for CellWrite<'a>
impl<'a> Send for CellWrite<'a>
impl<'a> Sync for CellWrite<'a>
impl<'a> Unpin for CellWrite<'a>
impl<'a> UnsafeUnpin for CellWrite<'a>
impl<'a> UnwindSafe for CellWrite<'a>
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