Struct axum_github_webhook_extract::GithubEvent
source · pub struct GithubEvent<T>(pub T);Expand description
Verify and extract Github Event Payload.
Tuple Fields§
§0: TTrait 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 copy 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<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, B> FromRequest<S, B, ViaRequest> for GithubEvent<T>where
GithubToken: FromRef<S>,
T: DeserializeOwned,
B: HttpBody + Send + 'static,
B::Data: Send,
B::Error: Into<BoxError>,
S: Send + Sync,
impl<T, S, B> FromRequest<S, B, ViaRequest> for GithubEvent<T>where GithubToken: FromRef<S>, T: DeserializeOwned, B: HttpBody + Send + 'static, B::Data: Send, B::Error: Into<BoxError>, S: Send + Sync,
§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> 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