pub struct ProposalBodyV0 {
pub name: String,
pub category: String,
pub summary: String,
pub description: String,
pub linked_proposals: Vec<ProposalId>,
pub requested_sponsorship_usd_amount: u32,
pub requested_sponsorship_paid_in_currency: ProposalFundingCurrency,
pub receiver_account: AccountId,
pub requested_sponsor: AccountId,
pub supervisor: Option<AccountId>,
pub timeline: TimelineStatusV1,
}
Fields§
§name: String
§category: String
§summary: String
§description: String
§linked_proposals: Vec<ProposalId>
§requested_sponsorship_usd_amount: u32
§requested_sponsorship_paid_in_currency: ProposalFundingCurrency
§receiver_account: AccountId
§requested_sponsor: AccountId
§supervisor: Option<AccountId>
§timeline: TimelineStatusV1
Trait Implementations§
Source§impl BorshDeserialize for ProposalBodyV0
impl BorshDeserialize for ProposalBodyV0
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 ProposalBodyV0
impl BorshSerialize for ProposalBodyV0
Source§impl Clone for ProposalBodyV0
impl Clone for ProposalBodyV0
Source§fn clone(&self) -> ProposalBodyV0
fn clone(&self) -> ProposalBodyV0
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ProposalBodyV0
impl Debug for ProposalBodyV0
Source§impl<'de> Deserialize<'de> for ProposalBodyV0
impl<'de> Deserialize<'de> for ProposalBodyV0
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<ProposalBodyV0> for ProposalBodyV1
impl From<ProposalBodyV0> for ProposalBodyV1
Source§fn from(v0: ProposalBodyV0) -> Self
fn from(v0: ProposalBodyV0) -> Self
Converts to this type from the input type.
Source§impl From<ProposalBodyV0> for VersionedProposalBody
impl From<ProposalBodyV0> for VersionedProposalBody
Source§fn from(p: ProposalBodyV0) -> Self
fn from(p: ProposalBodyV0) -> Self
Converts to this type from the input type.
Source§impl From<VersionedProposalBody> for ProposalBodyV0
impl From<VersionedProposalBody> for ProposalBodyV0
Source§fn from(solution: VersionedProposalBody) -> Self
fn from(solution: VersionedProposalBody) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProposalBodyV0
impl RefUnwindSafe for ProposalBodyV0
impl Send for ProposalBodyV0
impl Sync for ProposalBodyV0
impl Unpin for ProposalBodyV0
impl UnwindSafe for ProposalBodyV0
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