pub struct Proposal {
pub id: ProposalId,
pub author_id: AccountId,
pub social_db_post_block_height: BlockHeight,
pub snapshot: ProposalSnapshot,
pub snapshot_history: Vec<ProposalSnapshot>,
}
Fields§
§id: ProposalId
§snapshot: ProposalSnapshot
§snapshot_history: Vec<ProposalSnapshot>
Trait Implementations§
Source§impl BorshDeserialize for Proposal
impl BorshDeserialize for Proposal
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for Proposal
impl BorshSerialize for Proposal
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 From<Proposal> for VersionedProposal
impl From<Proposal> for VersionedProposal
Source§impl From<VersionedProposal> for Proposal
impl From<VersionedProposal> for Proposal
Source§fn from(vp: VersionedProposal) -> Self
fn from(vp: VersionedProposal) -> Self
Converts to this type from the input type.
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