[][src]Struct vf_rs::vf::builders::AgentRelationshipBuilder

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

Builder for AgentRelationship.

Implementations

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

pub fn in_scope_of<VALUE: Into<Vec<Url>>>(self, value: VALUE) -> Self[src]

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

pub fn note<VALUE: Into<String>>(self, value: VALUE) -> Self[src]

pub fn object<VALUE: Into<AGENT>>(self, value: VALUE) -> 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 relationship<VALUE: Into<AGENTRELATIONSHIPROLE>>(
    self,
    value: VALUE
) -> Self
[src]

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

pub fn subject<VALUE: Into<AGENT>>(self, value: VALUE) -> 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.

pub fn build(
    self
) -> Result<AgentRelationship<AGENT, AGENTRELATIONSHIPROLE>, String>
[src]

Builds a new AgentRelationship.

Errors

If a required field has not been initialized.

Trait Implementations

impl<AGENT: Default, AGENTRELATIONSHIPROLE: Default> Default for AgentRelationshipBuilder<AGENT, AGENTRELATIONSHIPROLE>[src]

Auto Trait Implementations

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

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

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

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

impl<AGENT, AGENTRELATIONSHIPROLE> UnwindSafe for AgentRelationshipBuilder<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> From<T> for T[src]

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

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.