pub struct Receiving<T: MoveType> {
pub id: ID,
pub version: u64,
/* private fields */
}
Expand description
This represents the ability to receive
an object of type T
.
This type is ephemeral per-transaction and cannot be stored on-chain.
This does not represent the obligation to receive the object that it
references, but simply the ability to receive the object with object ID
id
at version version
if you can prove mutable access to the parent
object during the transaction.
Internals of this struct are opaque outside this module.
Fields§
§id: ID
§version: u64
Implementations§
Source§impl<T: MoveType> Receiving<T>
impl<T: MoveType> Receiving<T>
pub fn move_instance(self, t: <T as MoveType>::TypeTag) -> MoveInstance<Self>
pub fn type_(t: <T as MoveType>::TypeTag) -> ReceivingTypeTag<T>
Trait Implementations§
Source§impl<'de, T: MoveType> Deserialize<'de> for Receiving<T>
impl<'de, T: MoveType> Deserialize<'de> for Receiving<T>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T: MoveType> MoveStruct for Receiving<T>
impl<T: MoveType> MoveStruct for Receiving<T>
type StructTag = ReceivingTypeTag<T>
Source§impl<T: MoveType> MoveType for Receiving<T>
impl<T: MoveType> MoveType for Receiving<T>
Source§impl<T: MoveType> StaticModule for Receiving<T>
impl<T: MoveType> StaticModule for Receiving<T>
fn module() -> Identifier
Source§impl<T: MoveType> StaticName for Receiving<T>
impl<T: MoveType> StaticName for Receiving<T>
fn name() -> Identifier
Source§impl<T: MoveType + StaticTypeTag> StaticTypeParams for Receiving<T>
impl<T: MoveType + StaticTypeTag> StaticTypeParams for Receiving<T>
fn type_params() -> Vec<TypeTag>
impl<T: Eq + MoveType> Eq for Receiving<T>
impl<T: MoveType> StructuralPartialEq for Receiving<T>
Auto Trait Implementations§
impl<T> Freeze for Receiving<T>
impl<T> RefUnwindSafe for Receiving<T>where
T: RefUnwindSafe,
impl<T> Send for Receiving<T>where
T: Send,
impl<T> Sync for Receiving<T>where
T: Sync,
impl<T> Unpin for Receiving<T>where
T: Unpin,
impl<T> UnwindSafe for Receiving<T>where
T: UnwindSafe,
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