pub struct ProposalBodyV2 {
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: VersionedTimelineStatus,
pub linked_rfp: Option<RFPId>,
}
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: VersionedTimelineStatus
§linked_rfp: Option<RFPId>
Trait Implementations§
Source§impl BorshDeserialize for ProposalBodyV2
impl BorshDeserialize for ProposalBodyV2
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 ProposalBodyV2
impl BorshSerialize for ProposalBodyV2
Source§impl Clone for ProposalBodyV2
impl Clone for ProposalBodyV2
Source§fn clone(&self) -> ProposalBodyV2
fn clone(&self) -> ProposalBodyV2
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 ProposalBodyV2
impl Debug for ProposalBodyV2
Source§impl<'de> Deserialize<'de> for ProposalBodyV2
impl<'de> Deserialize<'de> for ProposalBodyV2
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<ProposalBodyV1> for ProposalBodyV2
impl From<ProposalBodyV1> for ProposalBodyV2
Source§fn from(v1: ProposalBodyV1) -> Self
fn from(v1: ProposalBodyV1) -> Self
Converts to this type from the input type.
Source§impl From<ProposalBodyV2> for VersionedProposalBody
impl From<ProposalBodyV2> for VersionedProposalBody
Source§fn from(p: ProposalBodyV2) -> Self
fn from(p: ProposalBodyV2) -> Self
Converts to this type from the input type.
Source§impl From<VersionedProposalBody> for ProposalBodyV2
impl From<VersionedProposalBody> for ProposalBodyV2
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 ProposalBodyV2
impl RefUnwindSafe for ProposalBodyV2
impl Send for ProposalBodyV2
impl Sync for ProposalBodyV2
impl Unpin for ProposalBodyV2
impl UnwindSafe for ProposalBodyV2
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