Struct ya_client_model::market::proposal::Proposal [−][src]
Fields
properties: ValueThe object which includes all the Proposal properties. This is a JSON object in "flat convention" - where keys are full property names and their values indicate properties.
The value's Javascript type shall conform with the type of the property (as indicated in Golem Standards).
Example property object:
{
"golem.com.pricing.model": "linear",
"golem.com.pricing.model.linear.coeffs": [0.001, 0.002, 0.0],
"golem.com.scheme": "payu",
"golem.com.scheme.payu.interval_sec": 6.0,
"golem.com.usage.vector": ["golem.usage.duration_sec", "golem.usage.cpu_sec"],
"golem.inf.cpu.architecture": "x86_64",
"golem.inf.cpu.cores": 4,
"golem.inf.cpu.threads": 7,
"golem.inf.mem.gib": 10.612468048930168,
"golem.inf.storage.gib": 81.7227783203125,
"golem.node.debug.subnet": "market-devnet",
"golem.node.id.name": "tworec@mf-market-devnet",
"golem.runtime.name": "vm",
"golem.runtime.version@v": "0.1.0"
}
``` #[serde(rename = "properties")]
constraints: Stringproposal_id: Stringissuer_id: NodeIdstate: StateSee State.
timestamp: DateTime<Utc>Object creation timestamp
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_id: String,
issuer_id: NodeId,
state: State,
timestamp: DateTime<Utc>
) -> Proposal[src]
properties: Value,
constraints: String,
proposal_id: String,
issuer_id: NodeId,
state: State,
timestamp: DateTime<Utc>
) -> Proposal
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[src]
impl Send for Proposal[src]
impl Sync for Proposal[src]
impl Unpin for Proposal[src]
impl UnwindSafe for Proposal[src]
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,
pub 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.
pub fn to_owned(&self) -> T[src]
pub 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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,