pub struct ServerConfig {Show 24 fields
pub dir: PathBuf,
pub reticulum_dir: Option<PathBuf>,
pub repositories_dir: PathBuf,
pub identity_path: PathBuf,
pub client_identity_path: PathBuf,
pub node_name: String,
pub announce_interval_secs: u64,
pub serve_nomadnet: bool,
pub templates_dir: PathBuf,
pub unicode_icons: bool,
pub record_stats: bool,
pub stats_ignore_identities: Vec<[u8; 16]>,
pub stats_push_ignore_identities: Vec<[u8; 16]>,
pub blocked_identities: Vec<[u8; 16]>,
pub identity_aliases: BTreeMap<String, [u8; 16]>,
pub allow_read: Vec<String>,
pub allow_write: Vec<String>,
pub allow_create: Vec<String>,
pub allow_stats: Vec<String>,
pub allow_release: Vec<String>,
pub allow_interact: Vec<String>,
pub allow_propose: Vec<String>,
pub allow_admin: Vec<String>,
pub log_level: u8,
}Fields§
§dir: PathBuf§reticulum_dir: Option<PathBuf>§repositories_dir: PathBuf§identity_path: PathBuf§client_identity_path: PathBuf§node_name: String§announce_interval_secs: u64§serve_nomadnet: bool§templates_dir: PathBuf§unicode_icons: bool§record_stats: bool§stats_ignore_identities: Vec<[u8; 16]>§stats_push_ignore_identities: Vec<[u8; 16]>§blocked_identities: Vec<[u8; 16]>§identity_aliases: BTreeMap<String, [u8; 16]>§allow_read: Vec<String>§allow_write: Vec<String>§allow_create: Vec<String>§allow_stats: Vec<String>§allow_release: Vec<String>§allow_interact: Vec<String>§allow_propose: Vec<String>§allow_admin: Vec<String>§log_level: u8Implementations§
Trait Implementations§
Source§impl Clone for ServerConfig
impl Clone for ServerConfig
Source§fn clone(&self) -> ServerConfig
fn clone(&self) -> ServerConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ServerConfig
impl RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnsafeUnpin for ServerConfig
impl UnwindSafe for ServerConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> InterfaceConfigData for Twhere
T: Send + 'static,
impl<T> InterfaceConfigData for Twhere
T: Send + 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more