Struct seaplane_cli::config::RawConfig
source · [−]pub struct RawConfig {
pub loaded_from: Vec<PathBuf>,
pub did_init: bool,
pub seaplane: RawSeaplaneConfig,
pub account: RawAccountConfig,
pub api: RawApiConfig,
pub danger_zone: RawDangerZoneConfig,
/* private fields */
}Fields
loaded_from: Vec<PathBuf>did_init: boolDid we run initialization automatically or not on startup?
seaplane: RawSeaplaneConfigaccount: RawAccountConfigapi: RawApiConfigdanger_zone: RawDangerZoneConfigImplementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for RawConfig
impl<'de> Deserialize<'de> for RawConfig
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl FromDisk for RawConfig
impl FromDisk for RawConfig
sourcefn set_loaded_from<P: AsRef<Path>>(&mut self, p: P)
fn set_loaded_from<P: AsRef<Path>>(&mut self, p: P)
Allows one to save or deserialize what path the item was loaded from
sourcefn loaded_from(&self) -> Option<&Path>
fn loaded_from(&self) -> Option<&Path>
If saved, get the path the item was loaded from
Auto Trait Implementations
impl RefUnwindSafe for RawConfig
impl Send for RawConfig
impl Sync for RawConfig
impl Unpin for RawConfig
impl UnwindSafe for RawConfig
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