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