Struct monitor_types::Server
source · pub struct Server {Show 15 fields
pub id: String,
pub name: String,
pub address: String,
pub permissions: PermissionsMap,
pub enabled: bool,
pub to_notify: Vec<String>,
pub auto_prune: bool,
pub cpu_alert: f32,
pub mem_alert: f64,
pub disk_alert: f64,
pub stats_interval: Timelength,
pub region: Option<String>,
pub instance_id: Option<String>,
pub created_at: String,
pub updated_at: String,
}Fields§
§id: String§name: String§address: String§permissions: PermissionsMap§enabled: bool§to_notify: Vec<String>§auto_prune: bool§cpu_alert: f32§mem_alert: f64§disk_alert: f64§stats_interval: Timelength§region: Option<String>§instance_id: Option<String>§created_at: String§updated_at: StringTrait Implementations§
source§impl<'de> Deserialize<'de> for Server
impl<'de> Deserialize<'de> for Server
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 Diff for Server
impl Diff for Server
§type Repr = ServerDiff
type Repr = ServerDiff
The type associated with the structs’ difference
source§fn diff_custom<D>(&self, other: &Self, visitor: &D) -> <D as Differ<Self>>::Reprwhere
D: Differ<Self>,
fn diff_custom<D>(&self, other: &Self, visitor: &D) -> <D as Differ<Self>>::Reprwhere D: Differ<Self>,
Produces a diff between two structs, using an external diffing implementation
source§fn apply_custom<D>(&mut self, diff: &<D as Differ<Self>>::Repr, visitor: &D)where
D: Differ<Self>,
fn apply_custom<D>(&mut self, diff: &<D as Differ<Self>>::Repr, visitor: &D)where D: Differ<Self>,
Applies the diff directly to the struct, using an external diffing implementation