Struct stellar_client::resources::operation::SetOptions [−][src]
pub struct SetOptions { /* fields omitted */ }Use “Set Options” operation to set following options to your account:
Set/clear account flags: AUTH_REQUIRED_FLAG (0x1) - if set, TrustLines are created with authorized set to false requiring the issuer to set it for each TrustLine. AUTH_REVOCABLE_FLAG (0x2) - if set, the authorized flag in TrustLines can be cleared. Otherwise, authorization cannot be revoked. Set the account’s inflation destination. Add new signers to the account. Set home domain.
Methods
impl SetOptions[src]
impl SetOptionspub fn new(
signer_key: String,
signer_weight: u8,
master_key_weight: u8,
(low, med, high): (u32, u32, u32),
home_domain: String,
set_flags: Option<Flags>,
clear_flags: Option<Flags>
) -> SetOptions[src]
pub fn new(
signer_key: String,
signer_weight: u8,
master_key_weight: u8,
(low, med, high): (u32, u32, u32),
home_domain: String,
set_flags: Option<Flags>,
clear_flags: Option<Flags>
) -> SetOptionsCreates a new SetOptions. Please note that thresholds tuple goes from low to high.
pub fn signer_key(&self) -> &str[src]
pub fn signer_key(&self) -> &strThe public key of the new signer.
pub fn signer_weight(&self) -> u8[src]
pub fn signer_weight(&self) -> u8The weight of the new signer (1-255).
pub fn master_key_weight(&self) -> u8[src]
pub fn master_key_weight(&self) -> u8The weight of the master key (1-255).
pub fn low_threshold(&self) -> u32[src]
pub fn low_threshold(&self) -> u32The sum weight for the low threshold.
pub fn med_threshold(&self) -> u32[src]
pub fn med_threshold(&self) -> u32The sum weight for the medium threshold.
pub fn high_threshold(&self) -> u32[src]
pub fn high_threshold(&self) -> u32The sum weight for the high threshold.
pub fn home_domain(&self) -> &str[src]
pub fn home_domain(&self) -> &strThe home domain used for reverse federation lookup
pub fn set_flags(&self) -> Option<Flags>[src]
pub fn set_flags(&self) -> Option<Flags>The flags that have been set in this operation
pub fn clear_flags(&self) -> Option<Flags>[src]
pub fn clear_flags(&self) -> Option<Flags>The flags that have been cleared in this operation
Trait Implementations
impl Debug for SetOptions[src]
impl Debug for SetOptionsfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for SetOptions[src]
impl Clone for SetOptionsfn clone(&self) -> SetOptions[src]
fn clone(&self) -> SetOptionsReturns 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
Auto Trait Implementations
impl Send for SetOptions
impl Send for SetOptionsimpl Sync for SetOptions
impl Sync for SetOptions