struct GotifySubscriptionRepr {
id: Uuid,
project: String,
team_role: Option<String>,
applications: Vec<String>,
application: Option<String>,
min_priority: Option<u8>,
created_at: SystemTime,
}Expand description
Deserialization shape, tolerant of the v0.20.0 record that stored a
single application: Option<String> and no applications key. A
non-null legacy application folds forward into applications; a
null or absent one leaves the empty match-any set. Serialization
always emits the current applications shape (this is deser-only).
Fields§
§id: Uuid§project: String§team_role: Option<String>§applications: Vec<String>§application: Option<String>§min_priority: Option<u8>§created_at: SystemTimeTrait Implementations§
Source§impl<'de> Deserialize<'de> for GotifySubscriptionRepr
impl<'de> Deserialize<'de> for GotifySubscriptionRepr
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
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.
Auto Trait Implementations§
impl Freeze for GotifySubscriptionRepr
impl RefUnwindSafe for GotifySubscriptionRepr
impl Send for GotifySubscriptionRepr
impl Sync for GotifySubscriptionRepr
impl Unpin for GotifySubscriptionRepr
impl UnsafeUnpin for GotifySubscriptionRepr
impl UnwindSafe for GotifySubscriptionRepr
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