#[non_exhaustive]pub struct EventItem {
pub log_id: String,
pub event_type: EventType,
pub created_at: DateTime<Utc>,
pub expires_at: Option<DateTime<Utc>>,
pub agent_id: Uuid,
pub ans_name: String,
pub agent_host: String,
pub agent_display_name: Option<String>,
pub agent_description: Option<String>,
pub version: String,
pub provider_id: Option<String>,
pub endpoints: Vec<AgentEndpoint>,
}Expand description
An individual agent event.
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.log_id: StringLog entry ID (used for pagination continuation).
event_type: EventTypeType of event.
created_at: DateTime<Utc>When the event occurred.
expires_at: Option<DateTime<Utc>>When the agent expires (if applicable).
agent_id: UuidAgent ID.
ans_name: StringANS name (e.g., ans://v1.0.0.agent.example.com).
agent_host: StringAgent host domain.
agent_display_name: Option<String>Human-readable agent name.
agent_description: Option<String>Agent description.
version: StringAgent version.
provider_id: Option<String>Provider ID (for AHP filtering).
endpoints: Vec<AgentEndpoint>Agent endpoints at time of event.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EventItem
impl<'de> Deserialize<'de> for EventItem
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 EventItem
impl RefUnwindSafe for EventItem
impl Send for EventItem
impl Sync for EventItem
impl Unpin for EventItem
impl UnsafeUnpin for EventItem
impl UnwindSafe for EventItem
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