pub enum SecretUpdate {
Unchanged,
Clear,
Set(String),
}Expand description
How a webhook subscription’s signing secret should be handled when sending a create/replace body to Bitbucket.
Bitbucket never returns the plaintext secret on reads, so the update flow
(which does a GET-then-PUT merge) must distinguish “leave the existing
secret untouched” from “clear it”. Omitting the secret field entirely
preserves the current secret; sending null clears it.
Variants§
Unchanged
Do not send the secret field; keep whatever secret is configured.
Clear
Send "secret": null to remove the configured secret.
Set(String)
Send "secret": "<value>" to set/replace the secret.
Trait Implementations§
Source§impl Clone for SecretUpdate
impl Clone for SecretUpdate
Source§impl Debug for SecretUpdate
impl Debug for SecretUpdate
Source§impl Default for SecretUpdate
impl Default for SecretUpdate
impl Eq for SecretUpdate
Source§impl PartialEq for SecretUpdate
impl PartialEq for SecretUpdate
impl StructuralPartialEq for SecretUpdate
Auto Trait Implementations§
impl Freeze for SecretUpdate
impl RefUnwindSafe for SecretUpdate
impl Send for SecretUpdate
impl Sync for SecretUpdate
impl Unpin for SecretUpdate
impl UnsafeUnpin for SecretUpdate
impl UnwindSafe for SecretUpdate
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,
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> 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