pub struct ObjectBag {
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 ObjectBag
impl ObjectBag
pub fn move_instance(self) -> MoveInstance<Self>
pub fn type_() -> ObjectBagTypeTag
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ObjectBag
impl<'de> Deserialize<'de> for ObjectBag
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 ObjectBag
impl MoveStruct for ObjectBag
type StructTag = ObjectBagTypeTag
Source§impl MoveType for ObjectBag
impl MoveType for ObjectBag
Source§impl StaticModule for ObjectBag
impl StaticModule for ObjectBag
fn module() -> Identifier
Source§impl StaticName for ObjectBag
impl StaticName for ObjectBag
fn name() -> Identifier
Source§impl StaticTypeParams for ObjectBag
impl StaticTypeParams for ObjectBag
fn type_params() -> Vec<TypeTag>
impl Eq for ObjectBag
impl StructuralPartialEq for ObjectBag
Auto Trait Implementations§
impl Freeze for ObjectBag
impl RefUnwindSafe for ObjectBag
impl Send for ObjectBag
impl Sync for ObjectBag
impl Unpin for ObjectBag
impl UnwindSafe for ObjectBag
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