pub struct DatabaseAlertSpec {
pub name: String,
pub value: i32,
pub extra: Value,
}
Expand description
Optional. Changes Redis database alert details.
Fields§
§name: String
Alert type. Available options depend on Plan type. See Configure alerts for more information.
value: i32
Value over which an alert will be sent. Default values and range depend on the alert type. See Configure alerts for more information.
extra: Value
Additional fields from the API
Trait Implementations§
Source§impl Clone for DatabaseAlertSpec
impl Clone for DatabaseAlertSpec
Source§fn clone(&self) -> DatabaseAlertSpec
fn clone(&self) -> DatabaseAlertSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DatabaseAlertSpec
impl Debug for DatabaseAlertSpec
Source§impl<'de> Deserialize<'de> for DatabaseAlertSpec
impl<'de> Deserialize<'de> for DatabaseAlertSpec
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 DatabaseAlertSpec
impl RefUnwindSafe for DatabaseAlertSpec
impl Send for DatabaseAlertSpec
impl Sync for DatabaseAlertSpec
impl Unpin for DatabaseAlertSpec
impl UnwindSafe for DatabaseAlertSpec
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