pub struct ServiceCheckOptions<'a> {
pub timestamp: Option<i32>,
pub hostname: Option<&'a str>,
pub message: Option<&'a str>,
}Expand description
Struct for adding optional pieces to a service check
Fields§
§timestamp: Option<i32>An optional timestamp to include with the check
hostname: Option<&'a str>An optional hostname to include with the check
message: Option<&'a str>An optional message to include with the check
Trait Implementations§
Source§impl<'a> Clone for ServiceCheckOptions<'a>
impl<'a> Clone for ServiceCheckOptions<'a>
Source§fn clone(&self) -> ServiceCheckOptions<'a>
fn clone(&self) -> ServiceCheckOptions<'a>
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<'a> Debug for ServiceCheckOptions<'a>
impl<'a> Debug for ServiceCheckOptions<'a>
Source§impl<'a> Default for ServiceCheckOptions<'a>
impl<'a> Default for ServiceCheckOptions<'a>
Source§fn default() -> ServiceCheckOptions<'a>
fn default() -> ServiceCheckOptions<'a>
Returns the “default value” for a type. Read more
impl<'a> Copy for ServiceCheckOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for ServiceCheckOptions<'a>
impl<'a> RefUnwindSafe for ServiceCheckOptions<'a>
impl<'a> Send for ServiceCheckOptions<'a>
impl<'a> Sync for ServiceCheckOptions<'a>
impl<'a> Unpin for ServiceCheckOptions<'a>
impl<'a> UnwindSafe for ServiceCheckOptions<'a>
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