pub struct JsUserOperation { /* private fields */ }
Implementations§
Source§impl JsUserOperation
impl JsUserOperation
pub fn register( name: &JsDomainName, owner: &JsPrincipal, subtree_policies: &JsSubtreePolicies, data: &JsValue, expires_at_height: u32, ) -> Result<JsUserOperation, JsValue>
pub fn update( name: &JsDomainName, data: &JsValue, ) -> Result<JsUserOperation, JsValue>
pub fn renew(name: &JsDomainName, expires_at_height: u32) -> JsUserOperation
pub fn transfer(name: &JsDomainName, to_owner: &JsPrincipal) -> JsUserOperation
pub fn delete(name: &JsDomainName) -> JsUserOperation
Trait Implementations§
Source§impl From<JsUserOperation> for JsValue
impl From<JsUserOperation> for JsValue
Source§fn from(value: JsUserOperation) -> JsValue
fn from(value: JsUserOperation) -> JsValue
Converts to this type from the input type.
Source§impl From<UserOperation> for JsUserOperation
impl From<UserOperation> for JsUserOperation
Source§fn from(inner: UserOperation) -> JsUserOperation
fn from(inner: UserOperation) -> JsUserOperation
Converts to this type from the input type.
Source§impl FromWasmAbi for JsUserOperation
impl FromWasmAbi for JsUserOperation
Source§impl IntoWasmAbi for JsUserOperation
impl IntoWasmAbi for JsUserOperation
Source§impl LongRefFromWasmAbi for JsUserOperation
impl LongRefFromWasmAbi for JsUserOperation
Source§type Anchor = RcRef<JsUserOperation>
type Anchor = RcRef<JsUserOperation>
Same as
RefFromWasmAbi::Anchor
Source§unsafe fn long_ref_from_abi(
js: <JsUserOperation as LongRefFromWasmAbi>::Abi,
) -> <JsUserOperation as LongRefFromWasmAbi>::Anchor
unsafe fn long_ref_from_abi( js: <JsUserOperation as LongRefFromWasmAbi>::Abi, ) -> <JsUserOperation as LongRefFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abi
Source§impl OptionFromWasmAbi for JsUserOperation
impl OptionFromWasmAbi for JsUserOperation
Source§fn is_none(abi: &<JsUserOperation as FromWasmAbi>::Abi) -> bool
fn is_none(abi: &<JsUserOperation as FromWasmAbi>::Abi) -> bool
Tests whether the argument is a “none” instance. If so it will be
deserialized as
None
, and otherwise it will be passed to
FromWasmAbi
.Source§impl OptionIntoWasmAbi for JsUserOperation
impl OptionIntoWasmAbi for JsUserOperation
Source§fn none() -> <JsUserOperation as IntoWasmAbi>::Abi
fn none() -> <JsUserOperation as IntoWasmAbi>::Abi
Returns an ABI instance indicating “none”, which JS will interpret as
the
None
branch of this option. Read moreSource§impl RefFromWasmAbi for JsUserOperation
impl RefFromWasmAbi for JsUserOperation
Source§type Anchor = RcRef<JsUserOperation>
type Anchor = RcRef<JsUserOperation>
The type that holds the reference to
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§unsafe fn ref_from_abi(
js: <JsUserOperation as RefFromWasmAbi>::Abi,
) -> <JsUserOperation as RefFromWasmAbi>::Anchor
unsafe fn ref_from_abi( js: <JsUserOperation as RefFromWasmAbi>::Abi, ) -> <JsUserOperation as RefFromWasmAbi>::Anchor
Source§impl RefMutFromWasmAbi for JsUserOperation
impl RefMutFromWasmAbi for JsUserOperation
Source§type Anchor = RcRefMut<JsUserOperation>
type Anchor = RcRefMut<JsUserOperation>
Same as
RefFromWasmAbi::Anchor
Source§unsafe fn ref_mut_from_abi(
js: <JsUserOperation as RefMutFromWasmAbi>::Abi,
) -> <JsUserOperation as RefMutFromWasmAbi>::Anchor
unsafe fn ref_mut_from_abi( js: <JsUserOperation as RefMutFromWasmAbi>::Abi, ) -> <JsUserOperation as RefMutFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abi
Source§impl TryFromJsValue for JsUserOperation
impl TryFromJsValue for JsUserOperation
Source§fn try_from_js_value(
value: JsValue,
) -> Result<JsUserOperation, <JsUserOperation as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<JsUserOperation, <JsUserOperation as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for JsUserOperation
impl VectorFromWasmAbi for JsUserOperation
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi( js: <JsUserOperation as VectorFromWasmAbi>::Abi, ) -> Box<[JsUserOperation]>
Source§impl VectorIntoWasmAbi for JsUserOperation
impl VectorIntoWasmAbi for JsUserOperation
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi( vector: Box<[JsUserOperation]>, ) -> <JsUserOperation as VectorIntoWasmAbi>::Abi
Source§impl Wraps<UserOperation> for JsUserOperation
impl Wraps<UserOperation> for JsUserOperation
Source§fn inner(&self) -> &UserOperation
fn inner(&self) -> &UserOperation
Converts a reference to a WASM type to a reference to the underlying Rust type.
Auto Trait Implementations§
impl Freeze for JsUserOperation
impl RefUnwindSafe for JsUserOperation
impl Send for JsUserOperation
impl Sync for JsUserOperation
impl Unpin for JsUserOperation
impl UnwindSafe for JsUserOperation
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> 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::Abi
Source§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
.