Struct vf_rs::vf::AgentRelationship
source · pub struct AgentRelationship<AGENT, AGENTRELATIONSHIPROLE> { /* private fields */ }
Expand description
An ongoing voluntary association between 2 agents of any kind.
Implementations§
source§impl<AGENT, AGENTRELATIONSHIPROLE> AgentRelationship<AGENT, AGENTRELATIONSHIPROLE>
impl<AGENT, AGENTRELATIONSHIPROLE> AgentRelationship<AGENT, AGENTRELATIONSHIPROLE>
sourcepub fn in_scope_of_mut(&mut self) -> &mut Vec<AGENT>
pub fn in_scope_of_mut(&mut self) -> &mut Vec<AGENT>
In the context of an agent, a grouping generally used for accounting, reporting.
pub fn note_mut(&mut self) -> &mut Option<String>
sourcepub fn object_mut(&mut self) -> &mut AGENT
pub fn object_mut(&mut self) -> &mut AGENT
The object of a relationship between 2 agents. For example, if Mary is a member of a group, then the group is the object.
sourcepub fn relationship_mut(&mut self) -> &mut AGENTRELATIONSHIPROLE
pub fn relationship_mut(&mut self) -> &mut AGENTRELATIONSHIPROLE
The role of an economic relationship that exists between 2 agents, such as member, trading partner.
sourcepub fn subject_mut(&mut self) -> &mut AGENT
pub fn subject_mut(&mut self) -> &mut AGENT
The subject of a relationship between 2 agents. For example, if Mary is a member of a group, then Mary is the subject.
source§impl<AGENT, AGENTRELATIONSHIPROLE> AgentRelationship<AGENT, AGENTRELATIONSHIPROLE>
impl<AGENT, AGENTRELATIONSHIPROLE> AgentRelationship<AGENT, AGENTRELATIONSHIPROLE>
sourcepub fn set_in_scope_of(&mut self, val: Vec<AGENT>) -> &mut Self
pub fn set_in_scope_of(&mut self, val: Vec<AGENT>) -> &mut Self
In the context of an agent, a grouping generally used for accounting, reporting.
pub fn set_note(&mut self, val: Option<String>) -> &mut Self
sourcepub fn set_object(&mut self, val: AGENT) -> &mut Self
pub fn set_object(&mut self, val: AGENT) -> &mut Self
The object of a relationship between 2 agents. For example, if Mary is a member of a group, then the group is the object.
sourcepub fn set_relationship(&mut self, val: AGENTRELATIONSHIPROLE) -> &mut Self
pub fn set_relationship(&mut self, val: AGENTRELATIONSHIPROLE) -> &mut Self
The role of an economic relationship that exists between 2 agents, such as member, trading partner.
sourcepub fn set_subject(&mut self, val: AGENT) -> &mut Self
pub fn set_subject(&mut self, val: AGENT) -> &mut Self
The subject of a relationship between 2 agents. For example, if Mary is a member of a group, then Mary is the subject.
source§impl<AGENT, AGENTRELATIONSHIPROLE> AgentRelationship<AGENT, AGENTRELATIONSHIPROLE>
impl<AGENT, AGENTRELATIONSHIPROLE> AgentRelationship<AGENT, AGENTRELATIONSHIPROLE>
sourcepub fn in_scope_of(&self) -> &Vec<AGENT>
pub fn in_scope_of(&self) -> &Vec<AGENT>
In the context of an agent, a grouping generally used for accounting, reporting.
pub fn note(&self) -> &Option<String>
sourcepub fn object(&self) -> &AGENT
pub fn object(&self) -> &AGENT
The object of a relationship between 2 agents. For example, if Mary is a member of a group, then the group is the object.
sourcepub fn relationship(&self) -> &AGENTRELATIONSHIPROLE
pub fn relationship(&self) -> &AGENTRELATIONSHIPROLE
The role of an economic relationship that exists between 2 agents, such as member, trading partner.
source§impl<AGENT, AGENTRELATIONSHIPROLE> AgentRelationship<AGENT, AGENTRELATIONSHIPROLE>
impl<AGENT, AGENTRELATIONSHIPROLE> AgentRelationship<AGENT, AGENTRELATIONSHIPROLE>
sourcepub fn builder() -> AgentRelationshipBuilder<AGENT, AGENTRELATIONSHIPROLE>
pub fn builder() -> AgentRelationshipBuilder<AGENT, AGENTRELATIONSHIPROLE>
Create an empty builder object for AgentRelationship
sourcepub fn into_builder(
self
) -> AgentRelationshipBuilder<AGENT, AGENTRELATIONSHIPROLE>
pub fn into_builder( self ) -> AgentRelationshipBuilder<AGENT, AGENTRELATIONSHIPROLE>
Turns AgentRelationship into AgentRelationshipBuilder
Trait Implementations§
source§impl<AGENT: Clone, AGENTRELATIONSHIPROLE: Clone> Clone for AgentRelationship<AGENT, AGENTRELATIONSHIPROLE>
impl<AGENT: Clone, AGENTRELATIONSHIPROLE: Clone> Clone for AgentRelationship<AGENT, AGENTRELATIONSHIPROLE>
source§fn clone(&self) -> AgentRelationship<AGENT, AGENTRELATIONSHIPROLE>
fn clone(&self) -> AgentRelationship<AGENT, AGENTRELATIONSHIPROLE>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<AGENT: Debug, AGENTRELATIONSHIPROLE: Debug> Debug for AgentRelationship<AGENT, AGENTRELATIONSHIPROLE>
impl<AGENT: Debug, AGENTRELATIONSHIPROLE: Debug> Debug for AgentRelationship<AGENT, AGENTRELATIONSHIPROLE>
source§impl<'de, AGENT, AGENTRELATIONSHIPROLE> Deserialize<'de> for AgentRelationship<AGENT, AGENTRELATIONSHIPROLE>where
AGENT: Deserialize<'de>,
AGENTRELATIONSHIPROLE: Deserialize<'de>,
impl<'de, AGENT, AGENTRELATIONSHIPROLE> Deserialize<'de> for AgentRelationship<AGENT, AGENTRELATIONSHIPROLE>where
AGENT: Deserialize<'de>,
AGENTRELATIONSHIPROLE: Deserialize<'de>,
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>,
source§impl<AGENT: PartialEq, AGENTRELATIONSHIPROLE: PartialEq> PartialEq for AgentRelationship<AGENT, AGENTRELATIONSHIPROLE>
impl<AGENT: PartialEq, AGENTRELATIONSHIPROLE: PartialEq> PartialEq for AgentRelationship<AGENT, AGENTRELATIONSHIPROLE>
source§fn eq(&self, other: &AgentRelationship<AGENT, AGENTRELATIONSHIPROLE>) -> bool
fn eq(&self, other: &AgentRelationship<AGENT, AGENTRELATIONSHIPROLE>) -> bool
self
and other
values to be equal, and is used
by ==
.