pub struct ForgeNotification { /* private fields */ }
Expand description
A notification receive from a Forge, typically via a Webhook.
Implementations§
Source§impl ForgeNotification
impl ForgeNotification
pub const fn new( forge_alias: ForgeAlias, repo_alias: RepoAlias, headers: BTreeMap<String, String>, body: Body, ) -> ForgeNotification
Source§impl ForgeNotification
impl ForgeNotification
pub const fn forge_alias(&self) -> &ForgeAlias
pub const fn repo_alias(&self) -> &RepoAlias
pub const fn body(&self) -> &Body
pub fn header(&self, header: &str) -> Option<&str>
Trait Implementations§
Source§impl Clone for ForgeNotification
impl Clone for ForgeNotification
Source§fn clone(&self) -> ForgeNotification
fn clone(&self) -> ForgeNotification
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ForgeNotification
impl Debug for ForgeNotification
Source§impl Ord for ForgeNotification
impl Ord for ForgeNotification
Source§fn cmp(&self, other: &ForgeNotification) -> Ordering
fn cmp(&self, other: &ForgeNotification) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ForgeNotification
impl PartialEq for ForgeNotification
Source§impl PartialOrd for ForgeNotification
impl PartialOrd for ForgeNotification
impl Eq for ForgeNotification
impl StructuralPartialEq for ForgeNotification
Auto Trait Implementations§
impl Freeze for ForgeNotification
impl RefUnwindSafe for ForgeNotification
impl Send for ForgeNotification
impl Sync for ForgeNotification
impl Unpin for ForgeNotification
impl UnwindSafe for ForgeNotification
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.