pub struct Bag {
pub id: UID,
pub size: u64,
}
Fields§
§id: UID
the ID of this bag
size: u64
the number of key-value pairs in the bag
Implementations§
Source§impl Bag
impl Bag
pub fn move_instance(self) -> MoveInstance<Self>
pub fn type_() -> BagTypeTag
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Bag
impl<'de> Deserialize<'de> for Bag
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 MoveStruct for Bag
impl MoveStruct for Bag
type StructTag = BagTypeTag
Source§impl MoveType for Bag
impl MoveType for Bag
Source§impl StaticModule for Bag
impl StaticModule for Bag
fn module() -> Identifier
Source§impl StaticName for Bag
impl StaticName for Bag
fn name() -> Identifier
Source§impl StaticTypeParams for Bag
impl StaticTypeParams for Bag
fn type_params() -> Vec<TypeTag>
impl Eq for Bag
impl StructuralPartialEq for Bag
Auto Trait Implementations§
impl Freeze for Bag
impl RefUnwindSafe for Bag
impl Send for Bag
impl Sync for Bag
impl Unpin for Bag
impl UnwindSafe for Bag
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