Struct gekko::runtime::kusama::extrinsics::indices::ForceTransfer [−][src]
pub struct ForceTransfer<A, B, C> where
A: Encode + Decode,
B: Encode + Decode,
C: Encode + Decode, {
pub new: A,
pub index: B,
pub freeze: C,
}
Expand description
Force an index to an account. This doesn’t require a deposit. If the index is already
Documentation (provided by the runtime metadata)
Force an index to an account. This doesn’t require a deposit. If the index is already held, then any deposit is reimbursed to its current owner.
The dispatch origin for this call must be Root.
index
: the index to be (re-)assigned.new
: the new owner of the index. This function is a no-op if it is equal to sender.freeze
: if set totrue
, will freeze the index so it cannot be transferred.
Emits IndexAssigned
if successful.
O(1)
.- One storage mutation (codec
O(1)
). - Up to one reserve operation.
- One event.
- DB Weight:
- Reads: Indices Accounts, System Account (original owner)
- Writes: Indices Accounts, System Account (original owner)
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
freeze: C
Type description: bool
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<A: Eq, B: Eq, C: Eq> Eq for ForceTransfer<A, B, C> where
A: Encode + Decode,
B: Encode + Decode,
C: Encode + Decode,
impl<A, B, C> StructuralEq for ForceTransfer<A, B, C> where
A: Encode + Decode,
B: Encode + Decode,
C: Encode + Decode,
impl<A, B, C> StructuralPartialEq for ForceTransfer<A, B, C> where
A: Encode + Decode,
B: Encode + Decode,
C: Encode + Decode,
Auto Trait Implementations
impl<A, B, C> RefUnwindSafe for ForceTransfer<A, B, C> where
A: RefUnwindSafe,
B: RefUnwindSafe,
C: RefUnwindSafe,
impl<A, B, C> Send for ForceTransfer<A, B, C> where
A: Send,
B: Send,
C: Send,
impl<A, B, C> Sync for ForceTransfer<A, B, C> where
A: Sync,
B: Sync,
C: Sync,
impl<A, B, C> Unpin for ForceTransfer<A, B, C> where
A: Unpin,
B: Unpin,
C: Unpin,
impl<A, B, C> UnwindSafe for ForceTransfer<A, B, C> where
A: UnwindSafe,
B: UnwindSafe,
C: 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
.