pub struct AgentVote {
pub agent_id: Uuid,
pub vote: bool,
pub message: Option<String>,
}Expand description
Vote from an agent
Fields§
§agent_id: UuidAgent ID
vote: boolVote result (true = valid, false = invalid)
message: Option<String>Optional reasoning/error message
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AgentVote
impl<'de> Deserialize<'de> for AgentVote
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 AgentVote
impl RefUnwindSafe for AgentVote
impl Send for AgentVote
impl Sync for AgentVote
impl Unpin for AgentVote
impl UnwindSafe for AgentVote
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