[][src]Struct vf_rs::vf::AgentRelationship

pub struct AgentRelationship<AGENT, AGENTRELATIONSHIPROLE> { /* fields omitted */ }

An ongoing voluntary association between 2 agents of any kind.

ID: https://w3id.org/valueflows#AgentRelationship

Implementations

impl<AGENT, AGENTRELATIONSHIPROLE> AgentRelationship<AGENT, AGENTRELATIONSHIPROLE>[src]

pub fn in_scope_of(&self) -> &Vec<Url>[src]

Grouping around something to create a boundary or context, used for documenting, accounting, planning.

pub fn note(&self) -> &Option<String>[src]

pub fn object(&self) -> &AGENT[src]

The object of a relationship between 2 agents. For example, if Mary is a member of a group, then the group is the object.

pub fn relationship(&self) -> &AGENTRELATIONSHIPROLE[src]

The role of an economic relationship that exists between 2 agents, such as member, trading partner.

pub fn subject(&self) -> &AGENT[src]

The subject of a relationship between 2 agents. For example, if Mary is a member of a group, then Mary is the subject.

impl<AGENT, AGENTRELATIONSHIPROLE> AgentRelationship<AGENT, AGENTRELATIONSHIPROLE>[src]

pub fn set_in_scope_of(&mut self, val: Vec<Url>) -> &mut Self[src]

Grouping around something to create a boundary or context, used for documenting, accounting, planning.

pub fn set_note(&mut self, val: Option<String>) -> &mut Self[src]

pub fn set_object(&mut self, val: AGENT) -> &mut Self[src]

The object of a relationship between 2 agents. For example, if Mary is a member of a group, then the group is the object.

pub fn set_relationship(&mut self, val: AGENTRELATIONSHIPROLE) -> &mut Self[src]

The role of an economic relationship that exists between 2 agents, such as member, trading partner.

pub fn set_subject(&mut self, val: AGENT) -> &mut Self[src]

The subject of a relationship between 2 agents. For example, if Mary is a member of a group, then Mary is the subject.

impl<AGENT, AGENTRELATIONSHIPROLE> AgentRelationship<AGENT, AGENTRELATIONSHIPROLE>[src]

pub fn in_scope_of_mut(&mut self) -> &mut Vec<Url>[src]

Grouping around something to create a boundary or context, used for documenting, accounting, planning.

pub fn note_mut(&mut self) -> &mut Option<String>[src]

pub fn object_mut(&mut self) -> &mut AGENT[src]

The object of a relationship between 2 agents. For example, if Mary is a member of a group, then the group is the object.

pub fn relationship_mut(&mut self) -> &mut AGENTRELATIONSHIPROLE[src]

The role of an economic relationship that exists between 2 agents, such as member, trading partner.

pub fn subject_mut(&mut self) -> &mut AGENT[src]

The subject of a relationship between 2 agents. For example, if Mary is a member of a group, then Mary is the subject.

impl<AGENT, AGENTRELATIONSHIPROLE> AgentRelationship<AGENT, AGENTRELATIONSHIPROLE>[src]

pub fn builder() -> AgentRelationshipBuilder<AGENT, AGENTRELATIONSHIPROLE>[src]

Create an empty builder object for AgentRelationship

pub fn into_builder(
    self
) -> AgentRelationshipBuilder<AGENT, AGENTRELATIONSHIPROLE>
[src]

Turns AgentRelationship into AgentRelationshipBuilder

Trait Implementations

impl<AGENT: Clone, AGENTRELATIONSHIPROLE: Clone> Clone for AgentRelationship<AGENT, AGENTRELATIONSHIPROLE>[src]

impl<AGENT: Debug, AGENTRELATIONSHIPROLE: Debug> Debug for AgentRelationship<AGENT, AGENTRELATIONSHIPROLE>[src]

impl<'de, AGENT, AGENTRELATIONSHIPROLE> Deserialize<'de> for AgentRelationship<AGENT, AGENTRELATIONSHIPROLE> where
    AGENT: Deserialize<'de>,
    AGENTRELATIONSHIPROLE: Deserialize<'de>, 
[src]

impl<AGENT: PartialEq, AGENTRELATIONSHIPROLE: PartialEq> PartialEq<AgentRelationship<AGENT, AGENTRELATIONSHIPROLE>> for AgentRelationship<AGENT, AGENTRELATIONSHIPROLE>[src]

impl<AGENT, AGENTRELATIONSHIPROLE> Serialize for AgentRelationship<AGENT, AGENTRELATIONSHIPROLE> where
    AGENT: Serialize,
    AGENTRELATIONSHIPROLE: Serialize
[src]

impl<AGENT, AGENTRELATIONSHIPROLE> StructuralPartialEq for AgentRelationship<AGENT, AGENTRELATIONSHIPROLE>[src]

Auto Trait Implementations

impl<AGENT, AGENTRELATIONSHIPROLE> RefUnwindSafe for AgentRelationship<AGENT, AGENTRELATIONSHIPROLE> where
    AGENT: RefUnwindSafe,
    AGENTRELATIONSHIPROLE: RefUnwindSafe

impl<AGENT, AGENTRELATIONSHIPROLE> Send for AgentRelationship<AGENT, AGENTRELATIONSHIPROLE> where
    AGENT: Send,
    AGENTRELATIONSHIPROLE: Send

impl<AGENT, AGENTRELATIONSHIPROLE> Sync for AgentRelationship<AGENT, AGENTRELATIONSHIPROLE> where
    AGENT: Sync,
    AGENTRELATIONSHIPROLE: Sync

impl<AGENT, AGENTRELATIONSHIPROLE> Unpin for AgentRelationship<AGENT, AGENTRELATIONSHIPROLE> where
    AGENT: Unpin,
    AGENTRELATIONSHIPROLE: Unpin

impl<AGENT, AGENTRELATIONSHIPROLE> UnwindSafe for AgentRelationship<AGENT, AGENTRELATIONSHIPROLE> where
    AGENT: UnwindSafe,
    AGENTRELATIONSHIPROLE: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.