Struct mcai_models::NotificationHook
source · [−]pub struct NotificationHook {
pub label: String,
pub endpoint: String,
pub credentials: Option<String>,
pub conditions: Vec<NotificationHookCondition>,
}
Fields
label: String
Label for the Notification
endpoint: String
Endpoint for the Notification
credentials: Option<String>
Credentials for the Notification
conditions: Vec<NotificationHookCondition>
Condition to execute the Notification
Trait Implementations
sourceimpl Clone for NotificationHook
impl Clone for NotificationHook
sourcefn clone(&self) -> NotificationHook
fn clone(&self) -> NotificationHook
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for NotificationHook
impl Debug for NotificationHook
sourceimpl<'de> Deserialize<'de> for NotificationHook
impl<'de> Deserialize<'de> for NotificationHook
sourcefn 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
sourceimpl JsonSchema for NotificationHook
impl JsonSchema for NotificationHook
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresourceimpl PartialEq<NotificationHook> for NotificationHook
impl PartialEq<NotificationHook> for NotificationHook
sourcefn eq(&self, other: &NotificationHook) -> bool
fn eq(&self, other: &NotificationHook) -> bool
sourceimpl Serialize for NotificationHook
impl Serialize for NotificationHook
impl StructuralPartialEq for NotificationHook
Auto Trait Implementations
impl RefUnwindSafe for NotificationHook
impl Send for NotificationHook
impl Sync for NotificationHook
impl Unpin for NotificationHook
impl UnwindSafe for NotificationHook
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more