pub struct GetProposalsInput {
pub limit: Option<u32>,
pub sort: Option<ProposalSort>,
}Expand description
Input for reading the governance proposals awaiting deliberation
Fields§
§limit: Option<u32>How many proposals; 20 by default
sort: Option<ProposalSort>newest (the default) or oldest first
Implementations§
Trait Implementations§
Source§impl Clone for GetProposalsInput
impl Clone for GetProposalsInput
Source§impl Debug for GetProposalsInput
impl Debug for GetProposalsInput
Source§impl Default for GetProposalsInput
impl Default for GetProposalsInput
Source§impl<'de> Deserialize<'de> for GetProposalsInput
impl<'de> Deserialize<'de> for GetProposalsInput
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
impl Eq for GetProposalsInput
Source§impl PartialEq for GetProposalsInput
impl PartialEq for GetProposalsInput
Source§impl Serialize for GetProposalsInput
impl Serialize for GetProposalsInput
impl StructuralPartialEq for GetProposalsInput
Auto Trait Implementations§
impl Freeze for GetProposalsInput
impl RefUnwindSafe for GetProposalsInput
impl Send for GetProposalsInput
impl Sync for GetProposalsInput
impl Unpin for GetProposalsInput
impl UnsafeUnpin for GetProposalsInput
impl UnwindSafe for GetProposalsInput
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.