[][src]Struct avrio_config::ConfigSave

pub struct ConfigSave {
    pub db_path: String,
    pub max_connections: u16,
    pub max_threads: u8,
    pub chain_key: String,
    pub state: u8,
    pub ip_host: String,
    pub seednodes: Vec<String>,
    pub ignore_minor_updates: bool,
    pub p2p_port: u16,
    pub rpc_port: u16,
    pub allow_cors: char,
    pub node_type: char,
    pub identitiy: String,
    pub key_file_path: String,
    pub log_level: u8,
    pub wallet_password: String,
}

This is what is saved in a file, the stuff the user can change and edit to fit their needs

Fields

db_path: Stringmax_connections: u16max_threads: u8chain_key: Stringstate: u8ip_host: Stringseednodes: Vec<String>ignore_minor_updates: boolp2p_port: u16rpc_port: u16allow_cors: charnode_type: charidentitiy: Stringkey_file_path: Stringlog_level: u8wallet_password: String

Methods

impl ConfigSave[src]

pub fn toConfig(&self) -> Config[src]

Trait Implementations

impl Clone for ConfigSave[src]

impl Debug for ConfigSave[src]

impl Default for ConfigSave[src]

impl<'de> Deserialize<'de> for ConfigSave[src]

impl Serialize for ConfigSave[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.