pub struct UpdateWebhook<'a> {
pub active: Option<bool>,
pub description: Option<CowStr<'a>>,
pub events: Option<Vec<CowStr<'a>>>,
pub id: CowStr<'a>,
pub name: Option<CowStr<'a>>,
pub prefix: Option<CowStr<'a>>,
pub rewrite: Option<Vec<RewriteRule<'a>>>,
pub suffix: Option<CowStr<'a>>,
pub url: Option<Uri<'a>>,
pub extra_data: BTreeMap<SmolStr, Data<'a>>,
}Fields§
§active: Option<bool>Whether this webhook should be active.
description: Option<CowStr<'a>>A description of what this webhook is used for.
events: Option<Vec<CowStr<'a>>>The types of events this webhook should receive.
id: CowStr<'a>The ID of the webhook to update.
name: Option<CowStr<'a>>A user-friendly name for this webhook.
prefix: Option<CowStr<'a>>Text to prepend to webhook messages.
rewrite: Option<Vec<RewriteRule<'a>>>Text replacement rules for webhook messages.
suffix: Option<CowStr<'a>>Text to append to webhook messages.
url: Option<Uri<'a>>The webhook URL where events will be sent.
extra_data: BTreeMap<SmolStr, Data<'a>>Implementations§
Source§impl<'a> UpdateWebhook<'a>
impl<'a> UpdateWebhook<'a>
Sourcepub fn new() -> UpdateWebhookBuilder<'a>
pub fn new() -> UpdateWebhookBuilder<'a>
Create an instance of UpdateWebhook using the builder syntax
Trait Implementations§
Source§impl<'a> Clone for UpdateWebhook<'a>
impl<'a> Clone for UpdateWebhook<'a>
Source§fn clone(&self) -> UpdateWebhook<'a>
fn clone(&self) -> UpdateWebhook<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for UpdateWebhook<'a>
impl<'a> Debug for UpdateWebhook<'a>
Source§impl<'de: 'a, 'a> Deserialize<'de> for UpdateWebhook<'a>
impl<'de: 'a, 'a> Deserialize<'de> for UpdateWebhook<'a>
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<'a> IntoStatic for UpdateWebhook<'a>
impl<'a> IntoStatic for UpdateWebhook<'a>
Source§type Output = UpdateWebhook<'static>
type Output = UpdateWebhook<'static>
The “owned” variant of the type. For
Cow<'a, str>, this is Cow<'static, str>, for example.Source§fn into_static(self) -> Self::Output
fn into_static(self) -> Self::Output
Turns the value into an “owned” variant, which can then be returned, moved, etc. Read more
Source§impl<'a> PartialEq for UpdateWebhook<'a>
impl<'a> PartialEq for UpdateWebhook<'a>
Source§impl<'a> Serialize for UpdateWebhook<'a>
impl<'a> Serialize for UpdateWebhook<'a>
Source§impl<'de> XrpcRequest<'de> for UpdateWebhook<'de>
impl<'de> XrpcRequest<'de> for UpdateWebhook<'de>
Source§const METHOD: XrpcMethod
const METHOD: XrpcMethod
XRPC method (query/GET or procedure/POST)
Source§type Response = UpdateWebhookResponse
type Response = UpdateWebhookResponse
Response type returned from the XRPC call (marker struct)
Source§fn encode_body(&self) -> Result<Vec<u8>, EncodeError>
fn encode_body(&self) -> Result<Vec<u8>, EncodeError>
Encode the request body for procedures. Read more
Source§fn decode_body(body: &'de [u8]) -> Result<Box<Self>, DecodeError>
fn decode_body(body: &'de [u8]) -> Result<Box<Self>, DecodeError>
Decode the request body for procedures. Read more
impl<'a> Eq for UpdateWebhook<'a>
impl<'a> StructuralPartialEq for UpdateWebhook<'a>
Auto Trait Implementations§
impl<'a> Freeze for UpdateWebhook<'a>
impl<'a> RefUnwindSafe for UpdateWebhook<'a>
impl<'a> Send for UpdateWebhook<'a>
impl<'a> Sync for UpdateWebhook<'a>
impl<'a> Unpin for UpdateWebhook<'a>
impl<'a> UnwindSafe for UpdateWebhook<'a>
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§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.