pub struct Proposal {
pub proposal_id: u64,
pub submitter_address: Addr,
pub status: ProposalStatus,
pub for_votes: Uint128,
pub against_votes: Uint128,
pub start_height: u64,
pub end_height: u64,
pub title: String,
pub description: String,
pub link: Option<String>,
pub messages: Option<Vec<ProposalMessage>>,
pub deposit_amount: Uint128,
}
Expand description
Proposal metadata stored in state
Fields§
§proposal_id: u64
§submitter_address: Addr
Address submitting the proposal
status: ProposalStatus
Wether the proposal is Active, Passed, Rejected or Executed
for_votes: Uint128
Number of for votes
against_votes: Uint128
Number of against votes
start_height: u64
Block at which voting for the porposal starts
end_height: u64
Block at which voting for the porposal ends
title: String
Title for the proposal
description: String
Description for the proposal
link: Option<String>
Link provided for cases where the proposal description is too large or some other external resource is intended to be associated with the proposal
messages: Option<Vec<ProposalMessage>>
Set of messages available to get executed if the proposal passes
deposit_amount: Uint128
MARS tokens deposited on the proposal submission. Will be returned to submitter if proposal passes and sent to xMars stakers otherwise
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
Source§impl JsonSchema for Proposal
impl JsonSchema for Proposal
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreimpl 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