pub struct Publisher {
pub id: UID,
pub package: String,
pub module_name: String,
}
Expand description
This type can only be created in the transaction that generates a module, by consuming its one-time witness, so it can be used to identify the address that published the package a type originated from.
Fields§
§id: UID
§package: String
§module_name: String
Implementations§
Source§impl Publisher
impl Publisher
pub fn move_instance(self) -> MoveInstance<Self>
pub fn type_() -> PublisherTypeTag
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Publisher
impl<'de> Deserialize<'de> for Publisher
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 Publisher
impl MoveStruct for Publisher
type StructTag = PublisherTypeTag
Source§impl MoveType for Publisher
impl MoveType for Publisher
Source§impl StaticModule for Publisher
impl StaticModule for Publisher
fn module() -> Identifier
Source§impl StaticName for Publisher
impl StaticName for Publisher
fn name() -> Identifier
Source§impl StaticTypeParams for Publisher
impl StaticTypeParams for Publisher
fn type_params() -> Vec<TypeTag>
impl Eq for Publisher
impl StructuralPartialEq for Publisher
Auto Trait Implementations§
impl Freeze for Publisher
impl RefUnwindSafe for Publisher
impl Send for Publisher
impl Sync for Publisher
impl Unpin for Publisher
impl UnwindSafe for Publisher
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more