pub struct ResolvedLayer {
pub enabled: bool,
pub reason: Option<DisabledReason>,
pub configured: bool,
pub ttl_ms: u64,
pub ramp: f64,
}Expand description
One serving layer after resolution.
Fields§
§enabled: boolWhether the layer serves this key: configured and admitted by its ramp.
reason: Option<DisabledReason>Why the layer is disabled, when it is.
configured: boolA valid TTL and ramp remain available when the ramp excluded this key.
ttl_ms: u64The effective TTL in milliseconds; zero when not configured.
ramp: f64The effective cohort percentage; zero when not configured.
Trait Implementations§
Source§impl Clone for ResolvedLayer
impl Clone for ResolvedLayer
Source§fn clone(&self) -> ResolvedLayer
fn clone(&self) -> ResolvedLayer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ResolvedLayer
Source§impl Debug for ResolvedLayer
impl Debug for ResolvedLayer
Source§impl PartialEq for ResolvedLayer
impl PartialEq for ResolvedLayer
Source§fn eq(&self, other: &ResolvedLayer) -> bool
fn eq(&self, other: &ResolvedLayer) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResolvedLayer
Auto Trait Implementations§
impl Freeze for ResolvedLayer
impl RefUnwindSafe for ResolvedLayer
impl Send for ResolvedLayer
impl Sync for ResolvedLayer
impl Unpin for ResolvedLayer
impl UnsafeUnpin for ResolvedLayer
impl UnwindSafe for ResolvedLayer
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