Enum fuels_core::Identity
source · pub enum Identity {
Address(Address),
ContractId(ContractId),
}Variants
Address(Address)
ContractId(ContractId)
Trait Implementations
sourceimpl Parameterize for Identity
impl Parameterize for Identity
fn param_type() -> ParamType
sourceimpl Tokenizable for Identity
impl Tokenizable for Identity
sourcefn from_token(token: Token) -> Result<Self, Error>
fn from_token(token: Token) -> Result<Self, Error>
Converts a
Token into expected type.sourcefn into_token(self) -> Token
fn into_token(self) -> Token
Converts a specified type back into token.
impl Eq for Identity
impl StructuralEq for Identity
impl StructuralPartialEq for Identity
Auto Trait Implementations
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnwindSafe for Identity
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more