[−][src]Struct avrio_config::Config
This is the entire config - this is what is passed arround in software and what you should use in anything your build
Fields
version_major: u8
version_breaking: u8
version_minor: u8
coin_name: String
db_path: String
node_drop_off_threshold: u8
decimal_places: u8
max_connections: u16
max_threads: u8
chain_key: String
state: u8
ip_host: String
seednodes: Vec<String>
ignore_minor_updates: bool
p2p_port: u16
rpc_port: u16
allow_cors: char
buffer_bytes: u16
network_id: Vec<u8>
node_type: char
identitiy: String
key_file_path: String
log_level: u8
min_intrest: f32
max_intrest: f32
max_reward: u32
min_vote: u8
probatory_epoch_count: u8
certificateDifficulty: u64
fullnode_lock_amount: u64
transactionTimestampMaxOffset: u32
max_time_to_live: u64
target_epoch_length: u64
username_burn_amount: u64
fullnode_lock_time: u64
first_block_hash: String
wallet_password: String
Methods
impl Config
[src]
pub fn toSave(self) -> ConfigSave
[src]
pub fn create(self) -> Result<()>
[src]
This creates a config file from the provided struct, if the file exists it does the same thing as save()
pub fn save(self) -> Result<()>
[src]
This is how you save the config, it is a expensive function on devices with slow storage as it opens and writes to the file
Trait Implementations
impl Clone for Config
[src]
impl Debug for Config
[src]
impl Default for Config
[src]
impl<'de> Deserialize<'de> for Config
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<Config> for Config
[src]
impl PartialOrd<Config> for Config
[src]
fn partial_cmp(&self, other: &Config) -> Option<Ordering>
[src]
fn lt(&self, other: &Config) -> bool
[src]
fn le(&self, other: &Config) -> bool
[src]
fn gt(&self, other: &Config) -> bool
[src]
fn ge(&self, other: &Config) -> bool
[src]
impl Serialize for Config
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for Config
[src]
Auto Trait Implementations
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,