pub struct NewEvent<'a> {
pub source: &'a str,
pub ref: &'a str,
pub message: &'a str,
pub description: Option<&'a str>,
pub severity: Option<Severity>,
pub occurred_at: Option<Timestamp>,
pub active: Option<bool>,
}Expand description
Payload for posting to POST /events on a canopy server.
Fields§
§source: &'a str§ref: &'a str§message: &'a str§description: Option<&'a str>§severity: Option<Severity>§occurred_at: Option<Timestamp>§active: Option<bool>Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for NewEvent<'a>
impl<'a> RefUnwindSafe for NewEvent<'a>
impl<'a> Send for NewEvent<'a>
impl<'a> Sync for NewEvent<'a>
impl<'a> Unpin for NewEvent<'a>
impl<'a> UnsafeUnpin for NewEvent<'a>
impl<'a> UnwindSafe for NewEvent<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more