pub struct JsUser { /* private fields */ }Available on crate feature
js only.Expand description
JS binding wrapper for UserHeader
Implementations§
Source§impl JsUser
impl JsUser
Sourcepub fn decode_from_base64(data: &str) -> Result<Self>
pub fn decode_from_base64(data: &str) -> Result<Self>
Create from base64 encoded account data.
Sourcepub fn owner_address(&self) -> String
pub fn owner_address(&self) -> String
Get the owner address.
Sourcepub fn store_address(&self) -> String
pub fn store_address(&self) -> String
Get the store address.
Sourcepub fn referral_code_address(&self) -> Option<String>
pub fn referral_code_address(&self) -> Option<String>
Get the referral code address.
Sourcepub fn referrer_address(&self) -> Option<String>
pub fn referrer_address(&self) -> Option<String>
Get the referrer address.
Sourcepub fn gt_last_minted_at(&self) -> i64
pub fn gt_last_minted_at(&self) -> i64
Get GT last minted at.
Sourcepub fn gt_total_minted(&self) -> u64
pub fn gt_total_minted(&self) -> u64
Get total minted GT amount.
Sourcepub fn gt_paid_fee_value(&self) -> u128
pub fn gt_paid_fee_value(&self) -> u128
Get paid fee value of GT.
Sourcepub fn gt_minted_fee_value(&self) -> u128
pub fn gt_minted_fee_value(&self) -> u128
Get minted fee value of GT.
Trait Implementations§
Source§impl FromWasmAbi for JsUser
impl FromWasmAbi for JsUser
Source§impl IntoWasmAbi for JsUser
impl IntoWasmAbi for JsUser
Source§impl LongRefFromWasmAbi for JsUser
impl LongRefFromWasmAbi for JsUser
Source§impl OptionFromWasmAbi for JsUser
impl OptionFromWasmAbi for JsUser
Source§impl OptionIntoWasmAbi for JsUser
impl OptionIntoWasmAbi for JsUser
Source§impl RefFromWasmAbi for JsUser
impl RefFromWasmAbi for JsUser
Source§impl RefMutFromWasmAbi for JsUser
impl RefMutFromWasmAbi for JsUser
Source§impl TryFromJsValue for JsUser
impl TryFromJsValue for JsUser
Source§impl VectorFromWasmAbi for JsUser
impl VectorFromWasmAbi for JsUser
Source§impl VectorIntoWasmAbi for JsUser
impl VectorIntoWasmAbi for JsUser
impl SupportsConstructor for JsUser
impl SupportsInstanceProperty for JsUser
impl SupportsStaticProperty for JsUser
Auto Trait Implementations§
impl Freeze for JsUser
impl RefUnwindSafe for JsUser
impl Send for JsUser
impl Sync for JsUser
impl Unpin for JsUser
impl UnwindSafe for JsUser
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.