pub struct GithubEvent<T>(pub T);
Expand description
Verify and extract Github Event Payload.
Tuple Fields§
§0: T
Trait Implementations§
Source§impl<T: Clone> Clone for GithubEvent<T>
impl<T: Clone> Clone for GithubEvent<T>
Source§fn clone(&self) -> GithubEvent<T>
fn clone(&self) -> GithubEvent<T>
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<T: Debug> Debug for GithubEvent<T>
impl<T: Debug> Debug for GithubEvent<T>
Source§impl<T: Default> Default for GithubEvent<T>
impl<T: Default> Default for GithubEvent<T>
Source§fn default() -> GithubEvent<T>
fn default() -> GithubEvent<T>
Returns the “default value” for a type. Read more
Source§impl<T, S> FromRequest<S> for GithubEvent<T>
impl<T, S> FromRequest<S> for GithubEvent<T>
Source§type Rejection = (StatusCode, String)
type Rejection = (StatusCode, String)
If the extractor fails it’ll use this “rejection” type. A rejection is
a kind of error that can be converted into a response.
impl<T: Copy> Copy for GithubEvent<T>
Auto Trait Implementations§
impl<T> Freeze for GithubEvent<T>where
T: Freeze,
impl<T> RefUnwindSafe for GithubEvent<T>where
T: RefUnwindSafe,
impl<T> Send for GithubEvent<T>where
T: Send,
impl<T> Sync for GithubEvent<T>where
T: Sync,
impl<T> Unpin for GithubEvent<T>where
T: Unpin,
impl<T> UnwindSafe for GithubEvent<T>where
T: UnwindSafe,
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