pub struct XGithubEvent(pub String);
Expand description
An axum-style TypedHeader
for the X-Github-Event
header.
Example:
fn handle(
TypedHeader(XGithubEvent(event)): TypedHeader<XGithubEvent>,
) -> impl IntoResponse {
// ...
}
Tuple Fields§
§0: String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for XGithubEvent
impl RefUnwindSafe for XGithubEvent
impl Send for XGithubEvent
impl Sync for XGithubEvent
impl Unpin for XGithubEvent
impl UnwindSafe for XGithubEvent
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