[−][src]Struct vostok_dao::proposal::NewProposal
NewProposal is an input to create a new Proposal
.
+ voting_start
must be after the current block number.
+ voting_duration
must be between Contract.min_duration
and Contract.max_duration
.
+ execute_before
is a last block number when the proposal can be closed and executed.
Must be after voting_start + voting_duration
.
Fields
action: Action
description: String
voting_start: U64
block number when voting started
voting_duration: u32
voting duration in number of blocks
execute_before: U64
last block number when the proposal can be executed. Must be bigger than
voting_start + voting_duration
Implementations
impl NewProposal
[src]
pub fn into_proposal(&self, min_duration: u32, max_duration: u32) -> Proposal
[src]
Trait Implementations
impl<'de> Deserialize<'de> for NewProposal
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for NewProposal
[src]
Auto Trait Implementations
impl RefUnwindSafe for NewProposal
[src]
impl Send for NewProposal
[src]
impl Sync for NewProposal
[src]
impl Unpin for NewProposal
[src]
impl UnwindSafe for NewProposal
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,