pub struct GacmConfig {
pub version: String,
pub users: Vec<User>,
pub registry: Vec<Registry>,
pub is_load: Option<bool>,
}
Fields§
§version: String
§users: Vec<User>
§registry: Vec<Registry>
§is_load: Option<bool>
Implementations§
Source§impl GacmConfig
impl GacmConfig
pub fn new() -> GacmConfig
pub fn load(&mut self) -> Result<&GacmConfig, Box<dyn Error>>
pub fn get_use_config(&self) -> &Vec<User>
pub fn get_registry_config(&self) -> &Vec<Registry>
Trait Implementations§
Source§impl Debug for GacmConfig
impl Debug for GacmConfig
Source§impl<'de> Deserialize<'de> for GacmConfig
impl<'de> Deserialize<'de> for GacmConfig
Source§fn 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
Auto Trait Implementations§
impl Freeze for GacmConfig
impl RefUnwindSafe for GacmConfig
impl Send for GacmConfig
impl Sync for GacmConfig
impl Unpin for GacmConfig
impl UnwindSafe for GacmConfig
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