Struct stellar_client::resources::Flags [−][src]
pub struct Flags { /* fields omitted */ }Permissions around who can own an asset and whether or not the asset issuer can freeze the asset.
Methods
impl Flags[src]
impl Flagspub fn new(auth_required: bool, auth_revocable: bool) -> Flags[src]
pub fn new(auth_required: bool, auth_revocable: bool) -> FlagsCreates a new set of flags
pub fn is_auth_required(&self) -> bool[src]
pub fn is_auth_required(&self) -> boolIf this field is true it means the anchor must approve anyone who wants to hold its credit, allowing it to control who its customers are
pub fn is_auth_revocable(&self) -> bool[src]
pub fn is_auth_revocable(&self) -> boolIf this field is true it means the anchor can freeze credit held by another account. When credit is frozen for a particular account, that account can only send the credit back to the anchor–it can’t transfer the credit to any other account. This setting allows the issuing account to revoke credit that it accidentally issued or that was obtained improperly.
Trait Implementations
impl Debug for Flags[src]
impl Debug for Flagsfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Copy for Flags[src]
impl Copy for Flagsimpl Clone for Flags[src]
impl Clone for Flagsfn clone(&self) -> Flags[src]
fn clone(&self) -> FlagsReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl PartialEq for Flags[src]
impl PartialEq for Flagsfn eq(&self, other: &Flags) -> bool[src]
fn eq(&self, other: &Flags) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Flags) -> bool[src]
fn ne(&self, other: &Flags) -> boolThis method tests for !=.
impl Eq for Flags[src]
impl Eq for Flags