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

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

Builder for ProposedIntent.

Implementations

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

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

The published proposal which this intent is part of.

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

The intent which is part of this published proposal.

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

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

pub fn build(self) -> Result<ProposedIntent<PROPOSAL, INTENT>, String>[src]

Builds a new ProposedIntent.

Errors

If a required field has not been initialized.

Trait Implementations

impl<PROPOSAL: Default, INTENT: Default> Default for ProposedIntentBuilder<PROPOSAL, INTENT>[src]

Auto Trait Implementations

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

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

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

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

impl<PROPOSAL, INTENT> UnwindSafe for ProposedIntentBuilder<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> 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.