pub struct SubscribeReq {
pub channel: Option<String>,
pub events: Option<Vec<String>>,
pub name: Option<String>,
}Fields§
§channel: Option<String>Channel is the Slack channel the notifier posts to — an id (C…/G…), a #name, or a bare name. Required.
events: Option<Vec<String>>Events narrows delivery to these lifecycle kinds (push.landed, deploy.live, deploy.failed). Omit it to receive every deliverable kind; a kind that is never posted to Slack is refused rather than silently dropped.
name: Option<String>Name is the repo to subscribe, from the :name path segment.
Implementations§
Source§impl SubscribeReq
impl SubscribeReq
pub fn new() -> SubscribeReq
Trait Implementations§
Source§impl Clone for SubscribeReq
impl Clone for SubscribeReq
Source§fn clone(&self) -> SubscribeReq
fn clone(&self) -> SubscribeReq
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 SubscribeReq
impl Debug for SubscribeReq
Source§impl Default for SubscribeReq
impl Default for SubscribeReq
Source§fn default() -> SubscribeReq
fn default() -> SubscribeReq
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SubscribeReq
impl<'de> Deserialize<'de> for SubscribeReq
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 PartialEq for SubscribeReq
impl PartialEq for SubscribeReq
Source§impl Serialize for SubscribeReq
impl Serialize for SubscribeReq
impl StructuralPartialEq for SubscribeReq
Auto Trait Implementations§
impl Freeze for SubscribeReq
impl RefUnwindSafe for SubscribeReq
impl Send for SubscribeReq
impl Sync for SubscribeReq
impl Unpin for SubscribeReq
impl UnsafeUnpin for SubscribeReq
impl UnwindSafe for SubscribeReq
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