pub struct RequestAttribution<'a> {
pub labels: &'a AttributionLabels,
pub array: Option<&'a str>,
pub chunk: Option<&'a [u32]>,
}Expand description
What one storage request is attributed to.
Fields§
§labels: &'a AttributionLabels§array: Option<&'a str>Node path without its leading /.
chunk: Option<&'a [u32]>Chunk coordinates.
Implementations§
Source§impl<'a> RequestAttribution<'a>
impl<'a> RequestAttribution<'a>
pub fn without_node(labels: &'a AttributionLabels) -> Self
Sourcepub fn user_agent_fragment(&self) -> String
pub fn user_agent_fragment(&self) -> String
The icechunk part of the User-Agent header: product tokens, then a
parenthesised comment when there is anything to say.
Trait Implementations§
Source§impl<'a> Clone for RequestAttribution<'a>
impl<'a> Clone for RequestAttribution<'a>
impl<'a> Copy for RequestAttribution<'a>
Auto Trait Implementations§
impl<'a> Freeze for RequestAttribution<'a>
impl<'a> RefUnwindSafe for RequestAttribution<'a>
impl<'a> Send for RequestAttribution<'a>
impl<'a> Sync for RequestAttribution<'a>
impl<'a> Unpin for RequestAttribution<'a>
impl<'a> UnsafeUnpin for RequestAttribution<'a>
impl<'a> UnwindSafe for RequestAttribution<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more