pub struct CommunicationRules {
pub can_delegate_to: Option<HashSet<AgentId>>,
pub can_query: Option<HashSet<AgentId>>,
pub cannot_contact: HashSet<AgentId>,
pub default: CommunicationDefault,
}Expand description
Who can this agent reach.
Fields§
§can_delegate_to: Option<HashSet<AgentId>>§can_query: Option<HashSet<AgentId>>§cannot_contact: HashSet<AgentId>§default: CommunicationDefaultImplementations§
Trait Implementations§
Source§impl Clone for CommunicationRules
impl Clone for CommunicationRules
Source§fn clone(&self) -> CommunicationRules
fn clone(&self) -> CommunicationRules
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 CommunicationRules
impl Debug for CommunicationRules
Source§impl Default for CommunicationRules
impl Default for CommunicationRules
Source§impl<'de> Deserialize<'de> for CommunicationRules
impl<'de> Deserialize<'de> for CommunicationRules
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 CommunicationRules
impl RefUnwindSafe for CommunicationRules
impl Send for CommunicationRules
impl Sync for CommunicationRules
impl Unpin for CommunicationRules
impl UnsafeUnpin for CommunicationRules
impl UnwindSafe for CommunicationRules
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