pub struct FleetAlertEndpoint {
pub url: Option<String>,
pub url_ref: Option<FleetSecretRef>,
pub secret_ref: Option<FleetSecretRef>,
}Expand description
An alert channel endpoint, supporting both inline URLs and secret refs.
For Slack and generic webhook channels, the URL may be provided directly
or as a secret reference resolved at send time. When both url and
url_ref are present, url_ref takes precedence after resolution.
Fields§
§url: Option<String>Inline URL (plaintext; only for non-sensitive endpoints).
url_ref: Option<FleetSecretRef>Reference to a secret containing the webhook URL.
secret_ref: Option<FleetSecretRef>Optional HMAC secret for webhook payload signing, as a secret ref.
Implementations§
Source§impl FleetAlertEndpoint
impl FleetAlertEndpoint
Sourcepub fn inline(url: impl Into<String>) -> Self
pub fn inline(url: impl Into<String>) -> Self
Create an inline URL endpoint (for non-sensitive use).
Sourcepub fn from_secret(url_ref: FleetSecretRef) -> Self
pub fn from_secret(url_ref: FleetSecretRef) -> Self
Create a secret-backed URL endpoint.
Trait Implementations§
Source§impl Clone for FleetAlertEndpoint
impl Clone for FleetAlertEndpoint
Source§fn clone(&self) -> FleetAlertEndpoint
fn clone(&self) -> FleetAlertEndpoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FleetAlertEndpoint
impl Debug for FleetAlertEndpoint
Source§impl<'de> Deserialize<'de> for FleetAlertEndpoint
impl<'de> Deserialize<'de> for FleetAlertEndpoint
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
impl Eq for FleetAlertEndpoint
Source§impl PartialEq for FleetAlertEndpoint
impl PartialEq for FleetAlertEndpoint
Source§fn eq(&self, other: &FleetAlertEndpoint) -> bool
fn eq(&self, other: &FleetAlertEndpoint) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FleetAlertEndpoint
impl Serialize for FleetAlertEndpoint
impl StructuralPartialEq for FleetAlertEndpoint
Auto Trait Implementations§
impl Freeze for FleetAlertEndpoint
impl RefUnwindSafe for FleetAlertEndpoint
impl Send for FleetAlertEndpoint
impl Sync for FleetAlertEndpoint
impl Unpin for FleetAlertEndpoint
impl UnsafeUnpin for FleetAlertEndpoint
impl UnwindSafe for FleetAlertEndpoint
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