pub struct HostedHookDefinition {
pub id: HookId,
pub scope: HookScope,
pub tenant_id: Option<TenantId>,
pub event_kinds: Vec<String>,
pub url: String,
pub signing_secret_ref: Option<String>,
pub enabled: bool,
pub created_at: OffsetDateTime,
pub updated_at: OffsetDateTime,
}Fields§
§id: HookId§scope: HookScope§tenant_id: Option<TenantId>Owning tenant; required for tenant scope, absent for system scope.
event_kinds: Vec<String>Canonical event-kind prefixes this hook subscribes to
(e.g. turn., thread.); empty = no events.
url: StringDelivery target URL (HTTPS in production deployments).
signing_secret_ref: Option<String>Reference to a signing secret managed by the host (env:NAME or a
secret-store id). The secret value itself never round-trips.
enabled: bool§created_at: OffsetDateTime§updated_at: OffsetDateTimeImplementations§
Trait Implementations§
Source§impl Clone for HostedHookDefinition
impl Clone for HostedHookDefinition
Source§fn clone(&self) -> HostedHookDefinition
fn clone(&self) -> HostedHookDefinition
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 HostedHookDefinition
impl Debug for HostedHookDefinition
Source§impl<'de> Deserialize<'de> for HostedHookDefinition
impl<'de> Deserialize<'de> for HostedHookDefinition
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 HostedHookDefinition
Source§impl PartialEq for HostedHookDefinition
impl PartialEq for HostedHookDefinition
Source§fn eq(&self, other: &HostedHookDefinition) -> bool
fn eq(&self, other: &HostedHookDefinition) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for HostedHookDefinition
impl Serialize for HostedHookDefinition
impl StructuralPartialEq for HostedHookDefinition
Auto Trait Implementations§
impl Freeze for HostedHookDefinition
impl RefUnwindSafe for HostedHookDefinition
impl Send for HostedHookDefinition
impl Sync for HostedHookDefinition
impl Unpin for HostedHookDefinition
impl UnsafeUnpin for HostedHookDefinition
impl UnwindSafe for HostedHookDefinition
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.