Struct gekko::runtime::kusama::extrinsics::indices::Transfer [−][src]
pub struct Transfer<A, B> where
A: Encode + Decode,
B: Encode + Decode, {
pub new: A,
pub index: B,
}
Expand description
Assign an index already owned by the sender to another account. The balance reservation
Documentation (provided by the runtime metadata)
Assign an index already owned by the sender to another account. The balance reservation is effectively transferred to the new account.
The dispatch origin for this call must be Signed.
index
: the index to be re-assigned. This must be owned by the sender.new
: the new owner of the index. This function is a no-op if it is equal to sender.
Emits IndexAssigned
if successful.
O(1)
.- One storage mutation (codec
O(1)
). - One transfer operation.
- One event.
- DB Weight:
- Reads: Indices Accounts, System Account (recipient)
- Writes: Indices Accounts, System Account (recipient)
Type Disclaimer
This library makes no assumptions about parameter types and must be specified manually as generic types. Each field contains a type description which can serve as a hint on what type is being expected, as provided by the runtime meatadata. See the common
module for common types which can be used.
Fields
new: A
Type description: T::AccountId
index: B
Type description: T::AccountIndex
Trait Implementations
Auto Trait Implementations
impl<A, B> RefUnwindSafe for Transfer<A, B> where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> UnwindSafe for Transfer<A, B> where
A: UnwindSafe,
B: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
The counterpart to unchecked_from
.