pub struct ProfileRecord {
pub id: String,
pub description: String,
pub consumer_kind: String,
pub state_class: String,
pub lifecycle: ProfileLifecycle,
pub created_at: DateTime<Utc>,
pub state_snapshot: Option<Value>,
pub total_events: u64,
pub exploration_epoch: u64,
}Expand description
Profile metadata stored in the registry.
Fields§
§id: String§description: String§consumer_kind: String§state_class: String§lifecycle: ProfileLifecycle§created_at: DateTime<Utc>§state_snapshot: Option<Value>§total_events: u64§exploration_epoch: u64Count of brain.reset invocations against this profile. Despite the
name, no exploration schedule exists — nothing else increments it, and
it stays 0 for profiles that have never been reset. Renaming to
reset_epoch is a versioned output-shape change deferred to the
posterior-serving lane (ADR-104 follow-up).
Implementations§
Source§impl ProfileRecord
impl ProfileRecord
pub fn new_balanced_recall(entity_capacity: usize) -> Self
Trait Implementations§
Source§impl Clone for ProfileRecord
impl Clone for ProfileRecord
Source§fn clone(&self) -> ProfileRecord
fn clone(&self) -> ProfileRecord
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 moreSource§impl Debug for ProfileRecord
impl Debug for ProfileRecord
Source§impl<'de> Deserialize<'de> for ProfileRecord
impl<'de> Deserialize<'de> for ProfileRecord
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
Auto Trait Implementations§
impl Freeze for ProfileRecord
impl RefUnwindSafe for ProfileRecord
impl Send for ProfileRecord
impl Sync for ProfileRecord
impl Unpin for ProfileRecord
impl UnsafeUnpin for ProfileRecord
impl UnwindSafe for ProfileRecord
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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