pub struct GotifySubscription {
pub id: Uuid,
pub project: String,
pub team_role: Option<String>,
pub applications: Vec<String>,
pub min_priority: Option<u8>,
pub created_at: SystemTime,
}Expand description
An active subscription: which project (and optional team-worker
role) receives notifications matching the applications +
min_priority filter. Durable ones persist to redb; ephemeral
ad-hoc-worker ones stay in memory only.
Fields§
§id: Uuid§project: String§team_role: Option<String>Worker label owning this subscription; None targets the
project lead. Named team_role for the stored shape - a rename
would decode cleanly to None and silently reroute every
worker’s subscription to the lead.
applications: Vec<String>Gotify application NAME filters; empty matches any application, otherwise the message’s app must be one of the listed names.
min_priority: Option<u8>Priority floor; None matches any priority.
created_at: SystemTimeTrait Implementations§
Source§impl Clone for GotifySubscription
impl Clone for GotifySubscription
Source§impl Debug for GotifySubscription
impl Debug for GotifySubscription
Source§impl<'de> Deserialize<'de> for GotifySubscription
impl<'de> Deserialize<'de> for GotifySubscription
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 GotifySubscription
Source§impl From<GotifySubscriptionRepr> for GotifySubscription
impl From<GotifySubscriptionRepr> for GotifySubscription
Source§fn from(repr: GotifySubscriptionRepr) -> Self
fn from(repr: GotifySubscriptionRepr) -> Self
Converts to this type from the input type.
Source§impl PartialEq for GotifySubscription
impl PartialEq for GotifySubscription
Source§impl Serialize for GotifySubscription
impl Serialize for GotifySubscription
impl StructuralPartialEq for GotifySubscription
Auto Trait Implementations§
impl Freeze for GotifySubscription
impl RefUnwindSafe for GotifySubscription
impl Send for GotifySubscription
impl Sync for GotifySubscription
impl Unpin for GotifySubscription
impl UnsafeUnpin for GotifySubscription
impl UnwindSafe for GotifySubscription
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>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.