[][src]Struct vf_rs::vf::ProposedIntent

pub struct ProposedIntent<PROPOSAL, INTENT> { /* fields omitted */ }

Represents many-to-many relationships between Proposals and Intents, supporting including intents in multiple proposals, as well as a proposal including multiple intents.

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

Implementations

impl<PROPOSAL, INTENT> ProposedIntent<PROPOSAL, INTENT>[src]

pub fn published_in(&self) -> &PROPOSAL[src]

The published proposal which this intent is part of.

pub fn publishes(&self) -> &INTENT[src]

The intent which is part of this published proposal.

pub fn reciprocal(&self) -> &Option<bool>[src]

This is a reciprocal intent of this proposal, not primary. Not meant to be used for intent matching.

impl<PROPOSAL, INTENT> ProposedIntent<PROPOSAL, INTENT>[src]

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

The published proposal which this intent is part of.

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

The intent which is part of this published proposal.

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

This is a reciprocal intent of this proposal, not primary. Not meant to be used for intent matching.

impl<PROPOSAL, INTENT> ProposedIntent<PROPOSAL, INTENT>[src]

pub fn published_in_mut(&mut self) -> &mut PROPOSAL[src]

The published proposal which this intent is part of.

pub fn publishes_mut(&mut self) -> &mut INTENT[src]

The intent which is part of this published proposal.

pub fn reciprocal_mut(&mut self) -> &mut Option<bool>[src]

This is a reciprocal intent of this proposal, not primary. Not meant to be used for intent matching.

impl<PROPOSAL, INTENT> ProposedIntent<PROPOSAL, INTENT>[src]

pub fn builder() -> ProposedIntentBuilder<PROPOSAL, INTENT>[src]

Create an empty builder object for ProposedIntent

pub fn into_builder(self) -> ProposedIntentBuilder<PROPOSAL, INTENT>[src]

Turns ProposedIntent into ProposedIntentBuilder

Trait Implementations

impl<PROPOSAL: Clone, INTENT: Clone> Clone for ProposedIntent<PROPOSAL, INTENT>[src]

impl<PROPOSAL: Debug, INTENT: Debug> Debug for ProposedIntent<PROPOSAL, INTENT>[src]

impl<'de, PROPOSAL, INTENT> Deserialize<'de> for ProposedIntent<PROPOSAL, INTENT> where
    PROPOSAL: Deserialize<'de>,
    INTENT: Deserialize<'de>, 
[src]

impl<PROPOSAL: PartialEq, INTENT: PartialEq> PartialEq<ProposedIntent<PROPOSAL, INTENT>> for ProposedIntent<PROPOSAL, INTENT>[src]

impl<PROPOSAL, INTENT> Serialize for ProposedIntent<PROPOSAL, INTENT> where
    PROPOSAL: Serialize,
    INTENT: Serialize
[src]

impl<PROPOSAL, INTENT> StructuralPartialEq for ProposedIntent<PROPOSAL, INTENT>[src]

Auto Trait Implementations

impl<PROPOSAL, INTENT> RefUnwindSafe for ProposedIntent<PROPOSAL, INTENT> where
    INTENT: RefUnwindSafe,
    PROPOSAL: RefUnwindSafe

impl<PROPOSAL, INTENT> Send for ProposedIntent<PROPOSAL, INTENT> where
    INTENT: Send,
    PROPOSAL: Send

impl<PROPOSAL, INTENT> Sync for ProposedIntent<PROPOSAL, INTENT> where
    INTENT: Sync,
    PROPOSAL: Sync

impl<PROPOSAL, INTENT> Unpin for ProposedIntent<PROPOSAL, INTENT> where
    INTENT: Unpin,
    PROPOSAL: Unpin

impl<PROPOSAL, INTENT> UnwindSafe for ProposedIntent<PROPOSAL, INTENT> where
    INTENT: UnwindSafe,
    PROPOSAL: 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.