#[non_exhaustive]pub struct ExtraUsageSegment {
pub format: ExtraUsageFormat,
pub config: CommonRateLimitConfig,
}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.format: ExtraUsageFormat§config: CommonRateLimitConfigImplementations§
Trait Implementations§
Source§impl Default for ExtraUsageSegment
impl Default for ExtraUsageSegment
Source§impl Segment for ExtraUsageSegment
impl Segment for ExtraUsageSegment
Source§fn render(&self, ctx: &DataContext) -> RenderResult
fn render(&self, ctx: &DataContext) -> RenderResult
Render this segment for the given context. Read more
Source§fn data_deps(&self) -> &'static [DataDep]
fn data_deps(&self) -> &'static [DataDep]
Declare which data sources this segment reads. The runtime
computes the union across all enabled segments and lazy-fetches
only those sources. Defaults to the stdin payload only; segments
that read other sources must override. See
docs/specs/data-fetching.md §Segment dependency declaration. Read moreSource§fn defaults(&self) -> SegmentDefaults
fn defaults(&self) -> SegmentDefaults
Layout defaults (priority, width bounds, separator preference).
User config may override each field via
OverriddenSegment.Auto Trait Implementations§
impl Freeze for ExtraUsageSegment
impl RefUnwindSafe for ExtraUsageSegment
impl Send for ExtraUsageSegment
impl Sync for ExtraUsageSegment
impl Unpin for ExtraUsageSegment
impl UnsafeUnpin for ExtraUsageSegment
impl UnwindSafe for ExtraUsageSegment
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