Struct safe_vault::Config [] [src]

pub struct Config {
    pub wallet_address: Option<XorName>,
    pub max_capacity: Option<u64>,
    pub chunk_store_root: Option<String>,
}

Lets a vault configure a wallet address and storage limit.

Fields

wallet_address: Option<XorName>

Used to store the address where SafeCoin will be sent.

max_capacity: Option<u64>

Upper limit for allowed network storage on this vault.

chunk_store_root: Option<String>

root directory for chunk_store directories

Trait Implementations

impl Encodable for Config
[src]

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl Decodable for Config
[src]

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Config, __D::Error>

impl Default for Config
[src]

fn default() -> Config

Returns the "default value" for a type. Read more

impl Debug for Config
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for Config
[src]

fn clone(&self) -> Config

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more