pub fn account(&self) -> Result<AccountId32, BadOrigin> {
        match self {
            Self::AccountId(account_id) => Ok(AccountId32::unchecked_from(account_id.clone())),
            _ => Err(BadOrigin),
        }
    }
/// Returns the account id if the origin is from a user, or `Err(BadOrigin)` otherwise
Returns the account id if the origin is from a user, or `Err(BadOrigin)` otherwise
Returns the account id if the origin is from a user or ` Err ( BadOrigin ) ` otherwise
pub fn account(&self) -> Result<AccountId32, BadOrigin> {
        match self {
            Self::AccountId(account_id) => Ok(AccountId32::unchecked_from(account_id.clone())),
            _ => Err(BadOrigin),
        }
    }
pub fn account ( & self ) -> Result < AccountId32 , BadOrigin > { match self { Self :: AccountId ( account_id ) => Ok ( AccountId32 :: unchecked_from ( account_id . clone ( ) ) ) , _ => Err ( BadOrigin ) , } }
Returns the account id if the origin is from a user, or `Err(BadOrigin)` otherwise
Returns the account id if the origin is from a user or ` Err ( BadOrigin ) ` otherwise
&self
&self