Struct drawbridge::types::RepositoryContext
source · pub struct RepositoryContext {
pub owner: Context,
pub name: Name,
}
Fields§
§owner: Context
§name: Name
Trait Implementations§
source§impl<B> FromRequest<B> for Contextwhere
B: Send,
impl<B> FromRequest<B> for Contextwhere
B: Send,
§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.
source§fn from_request<'life0, 'async_trait>(
req: &'life0 mut RequestParts<B>
) -> Pin<Box<dyn Future<Output = Result<Context, <Context as FromRequest<B>>::Rejection>> + Send + 'async_trait>>where
'life0: 'async_trait,
Context: 'async_trait,
fn from_request<'life0, 'async_trait>(
req: &'life0 mut RequestParts<B>
) -> Pin<Box<dyn Future<Output = Result<Context, <Context as FromRequest<B>>::Rejection>> + Send + 'async_trait>>where
'life0: 'async_trait,
Context: 'async_trait,
Perform the extraction.
source§impl PartialEq for Context
impl PartialEq for Context
impl Eq for Context
impl StructuralPartialEq for Context
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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