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