pub struct ProposalQuery {
pub sort: Option<String>,
pub limit: Option<i64>,
}Expand description
Query parameters for the undeliberated proposal queue.
sort is a string rather than a ProposalSort so an unrecognized
value degrades to the default instead of failing the request, matching
FeedQuery. Parse it with sort.and_then(|s| s.parse().ok()).
Fields§
§sort: Option<String>One of the ProposalSort values. Defaults to newest.
limit: Option<i64>Max proposals to return. Defaults to 20.
Trait Implementations§
Source§impl Debug for ProposalQuery
impl Debug for ProposalQuery
Source§impl Default for ProposalQuery
impl Default for ProposalQuery
Source§fn default() -> ProposalQuery
fn default() -> ProposalQuery
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProposalQuery
impl<'de> Deserialize<'de> for ProposalQuery
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
Auto Trait Implementations§
impl Freeze for ProposalQuery
impl RefUnwindSafe for ProposalQuery
impl Send for ProposalQuery
impl Sync for ProposalQuery
impl Unpin for ProposalQuery
impl UnsafeUnpin for ProposalQuery
impl UnwindSafe for ProposalQuery
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