Struct kuma_client::Config
source · pub struct Config {
pub url: Url,
pub username: Option<String>,
pub password: Option<String>,
pub mfa_token: Option<String>,
pub headers: Vec<String>,
pub connect_timeout: f64,
pub call_timeout: f64,
}Expand description
Configuration for the Client.
Fields§
§url: UrlThe URL for connecting to Uptime Kuma.
username: Option<String>The username for logging into Uptime Kuma (required unless auth is disabled). .
password: Option<String>The password for logging into Uptime Kuma (required unless auth is disabled).
mfa_token: Option<String>The MFA token for logging into Uptime Kuma (required if MFA is enabled).
headers: Vec<String>List of HTTP headers to send when connecting to Uptime Kuma.
connect_timeout: f64The timeout for the initial connection to Uptime Kuma.
call_timeout: f64The timeout for executing calls to the Uptime Kuma server.
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
source§impl PartialEq for Config
impl PartialEq for Config
impl StructuralPartialEq for Config
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