pub struct Config {
pub url: String,
pub secure: bool,
pub authkey: String,
pub cert: CertConfig,
pub alts: Option<Vec<CertEntry>>,
}Expand description
Config that can be installed locally
Fields§
§url: StringURL of the Pyrinas server to connect to. For example: pyrinas-admin.yourdomain.com
secure: boolDetermines secure connection or not
authkey: StringAuthentication key. This is the same key set in the Pyrinas config.toml
cert: CertConfigServer cert configuration
alts: Option<Vec<CertEntry>>Alternative Certs to program to provisioned devices
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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 Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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