#[non_exhaustive]pub struct AdmitRequest<'a> {
pub repo: &'a RepoId,
pub procedure: Procedure,
pub head: bool,
pub ref_path: bool,
pub declared_bytes: u64,
pub credential_headers: &'a [CredentialHeader],
}Expand description
One admitted read (§7), filled by WP-4.13, which adds the request’s credential headers.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.repo: &'a RepoIdThe selected repository.
procedure: ProcedureHttpGetObject or HttpGetRefPath: the hook’s procedure (§7).
head: boolA HEAD declares the GET byte count but sends no body.
ref_path: boolA ref path rather than an object id.
declared_bytes: u64The selected GET body length, after ordinary Range or proof selection.
credential_headers: &'a [CredentialHeader]Selected payment credentials; never contains Bearer credentials.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for AdmitRequest<'a>
impl<'a> RefUnwindSafe for AdmitRequest<'a>
impl<'a> Send for AdmitRequest<'a>
impl<'a> Sync for AdmitRequest<'a>
impl<'a> Unpin for AdmitRequest<'a>
impl<'a> UnsafeUnpin for AdmitRequest<'a>
impl<'a> UnwindSafe for AdmitRequest<'a>
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