pub struct NnsProposalListRequest {Show 13 fields
pub network: String,
pub source_endpoint: String,
pub now_unix_secs: u64,
pub limit: u32,
pub before_proposal_id: Option<u64>,
pub status: NnsProposalStatusFilter,
pub reward_status: NnsProposalRewardStatusFilter,
pub topic: NnsProposalTopicFilter,
pub proposer_neuron_id: Option<u64>,
pub query: Option<String>,
pub sort: NnsProposalListSort,
pub sort_direction: NnsProposalSortDirection,
pub verbose: bool,
}Expand description
NnsProposalListRequest
Request accepted by the NNS proposal list report builder.
Fields§
§network: String§source_endpoint: String§now_unix_secs: u64§limit: u32§before_proposal_id: Option<u64>§status: NnsProposalStatusFilter§reward_status: NnsProposalRewardStatusFilter§topic: NnsProposalTopicFilter§proposer_neuron_id: Option<u64>§query: Option<String>§sort: NnsProposalListSort§sort_direction: NnsProposalSortDirection§verbose: boolImplementations§
Source§impl NnsProposalListRequest
impl NnsProposalListRequest
pub fn new( network: impl Into<String>, source_endpoint: impl Into<String>, now_unix_secs: u64, limit: u32, ) -> Self
pub const fn with_before_proposal_id(self, before_proposal_id: u64) -> Self
pub const fn with_status(self, status: NnsProposalStatusFilter) -> Self
pub const fn with_reward_status( self, reward_status: NnsProposalRewardStatusFilter, ) -> Self
pub const fn with_topic(self, topic: NnsProposalTopicFilter) -> Self
pub const fn with_proposer_neuron_id(self, proposer_neuron_id: u64) -> Self
pub fn with_query(self, query: impl Into<String>) -> Self
pub const fn with_sort(self, sort: NnsProposalListSort) -> Self
pub const fn with_sort_direction( self, sort_direction: NnsProposalSortDirection, ) -> Self
pub const fn with_verbose(self, verbose: bool) -> Self
Trait Implementations§
Source§impl Clone for NnsProposalListRequest
impl Clone for NnsProposalListRequest
Source§fn clone(&self) -> NnsProposalListRequest
fn clone(&self) -> NnsProposalListRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NnsProposalListRequest
impl Debug for NnsProposalListRequest
impl Eq for NnsProposalListRequest
Source§impl PartialEq for NnsProposalListRequest
impl PartialEq for NnsProposalListRequest
impl StructuralPartialEq for NnsProposalListRequest
Auto Trait Implementations§
impl Freeze for NnsProposalListRequest
impl RefUnwindSafe for NnsProposalListRequest
impl Send for NnsProposalListRequest
impl Sync for NnsProposalListRequest
impl Unpin for NnsProposalListRequest
impl UnsafeUnpin for NnsProposalListRequest
impl UnwindSafe for NnsProposalListRequest
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