pub struct Target_ {
pub name: String,
url: String,
format: Format,
key: String,
}Expand description
A webhook endpoint.
Deliberately not Debug, and neither is anything holding one: a Slack
webhook URL is the credential and so is PagerDuty’s routing key, so the
derive that makes them one careless {:?} away from a log line is the one
thing this type must not have.
Fields§
§name: String§url: String§format: Format§key: StringPagerDuty’s Events v2 routing key. Ignored by the other formats.
Auto Trait Implementations§
impl Freeze for Target_
impl RefUnwindSafe for Target_
impl Send for Target_
impl Sync for Target_
impl Unpin for Target_
impl UnsafeUnpin for Target_
impl UnwindSafe for Target_
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].