pub struct Proposal {
pub properties: Value,
pub constraints: String,
pub proposal_id: String,
pub issuer_id: NodeId,
pub state: State,
pub timestamp: DateTime<Utc>,
pub prev_proposal_id: Option<String>,
}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: String§proposal_id: String§issuer_id: NodeId§state: 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§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Proposal
impl<'de> Deserialize<'de> for Proposal
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Proposal
Auto Trait Implementations§
impl Freeze for Proposal
impl RefUnwindSafe for Proposal
impl Send for Proposal
impl Sync for Proposal
impl Unpin for Proposal
impl UnwindSafe for Proposal
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more