Struct spacetimedb_cli::Config
source · pub struct Config {
pub host: String,
pub default_identity: Option<String>,
pub identity_configs: Vec<IdentityConfig>,
}Fields
host: Stringdefault_identity: Option<String>identity_configs: Vec<IdentityConfig>Implementations
sourceimpl Config
impl Config
pub fn load() -> Self
pub fn save(&self)
pub fn get_default_identity_config(&self) -> Option<&IdentityConfig>
pub fn name_exists(&self, nickname: &str) -> bool
pub fn get_identity_config_by_name(&self, name: &str) -> Option<&IdentityConfig>
pub fn get_identity_config_by_identity(
&self,
identity: &str
) -> Option<&IdentityConfig>
pub fn get_identity_config_by_identity_mut(
&mut self,
identity: &str
) -> Option<&mut IdentityConfig>
pub fn update_default_identity(&mut self)
Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more