pub struct ActorClass {
pub kind: ConsumerKind,
pub family: FamilyClass,
pub harness: HarnessClass,
}Expand description
The actor dimensions an event may carry — three coarse classes, packed into one byte in the analytical log.
Fields§
§kind: ConsumerKindBot, human, terminal, or agent.
family: FamilyClassCoarse model family (agents only; None otherwise).
harness: HarnessClassCoarse harness (agents only; None otherwise).
Implementations§
Source§impl ActorClass
impl ActorClass
Sourcepub fn from_context(ctx: &ResolverContext) -> Self
pub fn from_context(ctx: &ResolverContext) -> Self
Classify a resolver context — the lossy, deliberate downgrade from context to analytics dimension (I-7 enforced at the boundary).
Trait Implementations§
Source§impl Clone for ActorClass
impl Clone for ActorClass
Source§fn clone(&self) -> ActorClass
fn clone(&self) -> ActorClass
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 ActorClass
Source§impl Debug for ActorClass
impl Debug for ActorClass
Source§impl<'de> Deserialize<'de> for ActorClass
impl<'de> Deserialize<'de> for ActorClass
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ActorClass
Source§impl PartialEq for ActorClass
impl PartialEq for ActorClass
Source§impl Serialize for ActorClass
impl Serialize for ActorClass
impl StructuralPartialEq for ActorClass
Auto Trait Implementations§
impl Freeze for ActorClass
impl RefUnwindSafe for ActorClass
impl Send for ActorClass
impl Sync for ActorClass
impl Unpin for ActorClass
impl UnsafeUnpin for ActorClass
impl UnwindSafe for ActorClass
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