pub struct ObserverEntity {
pub id: ObserverId,
pub observer_type: ObserverType,
pub observing: Vec<String>,
pub frequency_secs: u64,
pub healthy: bool,
pub trust: f64,
}Expand description
An entity observing this agent.
Fields§
§id: ObserverId§observer_type: ObserverType§observing: Vec<String>§frequency_secs: u64§healthy: bool§trust: f64Trait Implementations§
Source§impl Clone for ObserverEntity
impl Clone for ObserverEntity
Source§fn clone(&self) -> ObserverEntity
fn clone(&self) -> ObserverEntity
Returns a duplicate of the value. Read more
1.0.0 · 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 ObserverEntity
impl Debug for ObserverEntity
Source§impl<'de> Deserialize<'de> for ObserverEntity
impl<'de> Deserialize<'de> for ObserverEntity
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 ObserverEntity
impl RefUnwindSafe for ObserverEntity
impl Send for ObserverEntity
impl Sync for ObserverEntity
impl Unpin for ObserverEntity
impl UnsafeUnpin for ObserverEntity
impl UnwindSafe for ObserverEntity
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