pub struct WatchParams {
pub name: String,
pub reason: String,
pub metric: Option<String>,
pub threshold: Option<f64>,
pub direction: WatchDirection,
pub check_interval_secs: Option<u64>,
pub expires_at: Option<DateTime<Utc>>,
pub severity: TaintSeverity,
pub propagate: bool,
pub agent_id: String,
}Expand description
Parameters for Repository::watch.
Fields§
§name: String§reason: String§metric: Option<String>§threshold: Option<f64>§direction: WatchDirection§check_interval_secs: Option<u64>§expires_at: Option<DateTime<Utc>>§severity: TaintSeverity§propagate: bool§agent_id: StringTrait Implementations§
Source§impl Clone for WatchParams
impl Clone for WatchParams
Source§impl Debug for WatchParams
impl Debug for WatchParams
Source§impl<'de> Deserialize<'de> for WatchParams
impl<'de> Deserialize<'de> for WatchParams
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 WatchParams
impl PartialEq for WatchParams
Source§impl Serialize for WatchParams
impl Serialize for WatchParams
impl StructuralPartialEq for WatchParams
Auto Trait Implementations§
impl Freeze for WatchParams
impl RefUnwindSafe for WatchParams
impl Send for WatchParams
impl Sync for WatchParams
impl Unpin for WatchParams
impl UnsafeUnpin for WatchParams
impl UnwindSafe for WatchParams
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