pub struct BroadcastAdminEventPayload {
pub tenant_id: Option<Uuid>,
pub event_json: String,
}Expand description
Cross-controller admin event broadcast payload.
Published via NATS to the controller subject by any controller instance
when it emits an AdminEvent
to local SSE subscribers. Receiving controller instances decode the payload
and re-broadcast to their own local SSE subscribers without re-publishing
to NATS (to avoid infinite loops).
tenant_id = None means the event targets all tenants (system-wide).
Safe to publish via NATS — contains no credential material.
Fields§
§tenant_id: Option<Uuid>Target tenant, or None for system-wide events.
event_json: StringJSON-serialised AdminEvent.
Trait Implementations§
Source§impl Clone for BroadcastAdminEventPayload
impl Clone for BroadcastAdminEventPayload
Source§fn clone(&self) -> BroadcastAdminEventPayload
fn clone(&self) -> BroadcastAdminEventPayload
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 BroadcastAdminEventPayload
impl Debug for BroadcastAdminEventPayload
Source§impl<'de> Deserialize<'de> for BroadcastAdminEventPayload
impl<'de> Deserialize<'de> for BroadcastAdminEventPayload
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 BroadcastAdminEventPayload
impl StructuralPartialEq for BroadcastAdminEventPayload
Auto Trait Implementations§
impl Freeze for BroadcastAdminEventPayload
impl RefUnwindSafe for BroadcastAdminEventPayload
impl Send for BroadcastAdminEventPayload
impl Sync for BroadcastAdminEventPayload
impl Unpin for BroadcastAdminEventPayload
impl UnsafeUnpin for BroadcastAdminEventPayload
impl UnwindSafe for BroadcastAdminEventPayload
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.