pub struct Royalty(pub ModuleHandle);
Tuple Fields§
§0: ModuleHandle
Implementations§
source§impl Royalty
impl Royalty
pub fn new(royalty_config: ComponentRoyaltyConfig) -> Self
pub fn set_royalty<M: ToString>(&self, method: M, amount: RoyaltyAmount)
pub fn lock_royalty<M: ToString>(&self, method: M)
pub fn claim_royalties(&self) -> Bucket
Trait Implementations§
source§impl Attachable for Royalty
impl Attachable for Royalty
const MODULE_ID: AttachedModuleId = AttachedModuleId::Royalty
fn new(handle: ModuleHandle) -> Self
fn handle(&self) -> &ModuleHandle
fn attached(address: GlobalAddress) -> Self
fn self_attached() -> Self
fn call<A: ScryptoEncode, T: ScryptoDecode>(&self, method: &str, args: &A) -> T
fn call_raw(&self, method: &str, args: Vec<u8>) -> Vec<u8> ⓘ
fn call_ignore_rtn<A: ScryptoEncode>(&self, method: &str, args: &A)
source§impl PartialEq for Royalty
impl PartialEq for Royalty
impl Eq for Royalty
impl StructuralPartialEq for Royalty
Auto Trait Implementations§
impl RefUnwindSafe for Royalty
impl Send for Royalty
impl Sync for Royalty
impl Unpin for Royalty
impl UnwindSafe for Royalty
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moresource§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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more