Struct grid_sdk::protocol::track_and_trace::state::ProposalBuilder
source · [−]pub struct ProposalBuilder { /* private fields */ }
Expand description
Builder used to create a Proposal
Implementations
sourceimpl ProposalBuilder
impl ProposalBuilder
pub fn new() -> Self
pub fn with_record_id(self, value: String) -> Self
pub fn with_timestamp(self, value: u64) -> Self
pub fn with_issuing_agent(self, value: String) -> Self
pub fn with_receiving_agent(self, value: String) -> Self
pub fn with_role(self, value: Role) -> Self
pub fn with_properties(self, value: Vec<String>) -> Self
pub fn with_status(self, value: Status) -> Self
pub fn with_terms(self, value: String) -> Self
pub fn build(self) -> Result<Proposal, BuilderError>
Trait Implementations
sourceimpl Debug for ProposalBuilder
impl Debug for ProposalBuilder
sourceimpl Default for ProposalBuilder
impl Default for ProposalBuilder
sourcefn default() -> ProposalBuilder
fn default() -> ProposalBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ProposalBuilder
impl Send for ProposalBuilder
impl Sync for ProposalBuilder
impl Unpin for ProposalBuilder
impl UnwindSafe for ProposalBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more