Skip to main content

OmRecord

Struct OmRecord 

Source
pub struct OmRecord {
Show 29 fields pub id: String, pub scope: OmScope, pub scope_key: String, pub session_id: Option<String>, pub thread_id: Option<String>, pub resource_id: Option<String>, pub generation_count: u32, pub last_applied_outbox_event_id: Option<i64>, pub origin_type: OmOriginType, pub active_observations: String, pub observation_token_count: u32, pub pending_message_tokens: u32, pub last_observed_at: Option<DateTime<Utc>>, pub current_task: Option<String>, pub suggested_response: Option<String>, pub last_activated_message_ids: Vec<String>, pub observer_trigger_count_total: u32, pub reflector_trigger_count_total: u32, pub is_observing: bool, pub is_reflecting: bool, pub is_buffering_observation: bool, pub is_buffering_reflection: bool, pub last_buffered_at_tokens: u32, pub last_buffered_at_time: Option<DateTime<Utc>>, pub buffered_reflection: Option<String>, pub buffered_reflection_tokens: Option<u32>, pub buffered_reflection_input_tokens: Option<u32>, pub created_at: DateTime<Utc>, pub updated_at: DateTime<Utc>,
}

Fields§

§id: String§scope: OmScope§scope_key: String§session_id: Option<String>§thread_id: Option<String>§resource_id: Option<String>§generation_count: u32§last_applied_outbox_event_id: Option<i64>§origin_type: OmOriginType§active_observations: String§observation_token_count: u32§pending_message_tokens: u32§last_observed_at: Option<DateTime<Utc>>§current_task: Option<String>§suggested_response: Option<String>§last_activated_message_ids: Vec<String>§observer_trigger_count_total: u32§reflector_trigger_count_total: u32§is_observing: bool§is_reflecting: bool§is_buffering_observation: bool§is_buffering_reflection: bool§last_buffered_at_tokens: u32§last_buffered_at_time: Option<DateTime<Utc>>§buffered_reflection: Option<String>§buffered_reflection_tokens: Option<u32>§buffered_reflection_input_tokens: Option<u32>§created_at: DateTime<Utc>§updated_at: DateTime<Utc>

Trait Implementations§

Source§

impl Clone for OmRecord

Source§

fn clone(&self) -> OmRecord

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for OmRecord

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for OmRecord

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for OmRecord

Source§

fn eq(&self, other: &OmRecord) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for OmRecord

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Eq for OmRecord

Source§

impl StructuralPartialEq for OmRecord

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,