pub struct GotifyConfig {
pub url: String,
pub client_token: String,
}Expand description
Connection to a Gotify server, parsed from the [gotify] block of
forge.toml. One server per v1. Unknown keys are rejected so a
mistyped client_token fails the load instead of leaving the
connector tokenless.
Fields§
§url: String§client_token: StringClient token for the receive stream (/stream?token=) and the
/application lookup (X-Gotify-Key).
Trait Implementations§
Source§impl Clone for GotifyConfig
impl Clone for GotifyConfig
Source§impl Debug for GotifyConfig
Hand-written because the client token must never be printed, the
same reason SlackConfig writes its own.
impl Debug for GotifyConfig
Hand-written because the client token must never be printed, the
same reason SlackConfig writes its own.
Source§impl<'de> Deserialize<'de> for GotifyConfig
impl<'de> Deserialize<'de> for GotifyConfig
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 GotifyConfig
Source§impl PartialEq for GotifyConfig
impl PartialEq for GotifyConfig
Source§impl Serialize for GotifyConfig
impl Serialize for GotifyConfig
impl StructuralPartialEq for GotifyConfig
Auto Trait Implementations§
impl Freeze for GotifyConfig
impl RefUnwindSafe for GotifyConfig
impl Send for GotifyConfig
impl Sync for GotifyConfig
impl Unpin for GotifyConfig
impl UnsafeUnpin for GotifyConfig
impl UnwindSafe for GotifyConfig
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.