pub struct StoredAutomation {
pub automation: Automation,
pub webhook_secret: Option<String>,
}Expand description
An automation as persisted, including the secret the wire type omits.
Automation is shared with the dashboard and every API response;
webhook_secret deliberately lives only here, so there is no path by which
serializing an automation exposes its signing key.
Fields§
§automation: AutomationThe automation itself — the part that is safe to hand out.
webhook_secret: Option<String>HMAC signing key for a webhook trigger. Shown once, at creation.
Trait Implementations§
Source§impl Clone for StoredAutomation
impl Clone for StoredAutomation
Source§fn clone(&self) -> StoredAutomation
fn clone(&self) -> StoredAutomation
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 StoredAutomation
impl Debug for StoredAutomation
impl Eq for StoredAutomation
Source§impl PartialEq for StoredAutomation
impl PartialEq for StoredAutomation
impl StructuralPartialEq for StoredAutomation
Auto Trait Implementations§
impl Freeze for StoredAutomation
impl RefUnwindSafe for StoredAutomation
impl Send for StoredAutomation
impl Sync for StoredAutomation
impl Unpin for StoredAutomation
impl UnsafeUnpin for StoredAutomation
impl UnwindSafe for StoredAutomation
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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.§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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more