[−][src]Struct ya_client_model::market::proposal::Proposal
Fields
properties: Value
constraints: String
proposal_id: Option<String>
issuer_id: Option<String>
state: Option<State>
Initial
- proposal arrived from the market as response to subscriptionDraft
- bespoke counter-proposal issued by one party directly to other party (negotiation phase)Rejected
by other partyAccepted
- promoted into the Agreement draftExpired
- not accepted nor rejected before validity period
prev_proposal_id: Option<String>
id of the proposal from other side which this proposal responds to
Implementations
impl Proposal
[src]
pub fn new(properties: Value, constraints: String) -> Proposal
[src]
pub fn counter_demand(&self, demand: Demand) -> Result<Proposal, ErrorMessage>
[src]
pub fn counter_offer(&self, offer: Offer) -> Result<Proposal, ErrorMessage>
[src]
pub fn proposal_id(&self) -> Result<&String, ErrorMessage>
[src]
pub fn issuer_id(&self) -> Result<&String, ErrorMessage>
[src]
pub fn state(&self) -> Result<&State, ErrorMessage>
[src]
pub fn prev_proposal_id(&self) -> Result<&String, ErrorMessage>
[src]
Trait Implementations
impl Clone for Proposal
[src]
impl Debug for Proposal
[src]
impl<'de> Deserialize<'de> for Proposal
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<Proposal> for Proposal
[src]
impl Serialize for Proposal
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for Proposal
[src]
Auto Trait Implementations
impl RefUnwindSafe for Proposal
impl Send for Proposal
impl Sync for Proposal
impl Unpin for Proposal
impl UnwindSafe for Proposal
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,