pub struct NnsNeuronListRequest {
pub governance: NnsGovernanceRequest,
pub limit: u32,
pub exclusive_start_neuron_id: Option<u64>,
pub verbose: bool,
}Expand description
NnsNeuronListRequest
Request for one page of the public NNS Governance neuron index.
Fields§
§governance: NnsGovernanceRequestShared network, collection time, and source transport request.
limit: u32Maximum rows to return.
exclusive_start_neuron_id: Option<u64>Exclusive lower neuron-id bound.
verbose: boolWhether text output should include expanded metadata.
Implementations§
Source§impl NnsNeuronListRequest
impl NnsNeuronListRequest
Sourcepub const fn new(governance: NnsGovernanceRequest, limit: u32) -> Self
pub const fn new(governance: NnsGovernanceRequest, limit: u32) -> Self
Construct a first-page public neuron-index request.
Sourcepub const fn with_exclusive_start_neuron_id(self, neuron_id: u64) -> Self
pub const fn with_exclusive_start_neuron_id(self, neuron_id: u64) -> Self
Start strictly after the given neuron id.
Sourcepub const fn with_verbose(self, verbose: bool) -> Self
pub const fn with_verbose(self, verbose: bool) -> Self
Select compact or expanded text rendering.
Trait Implementations§
Source§impl Clone for NnsNeuronListRequest
impl Clone for NnsNeuronListRequest
Source§fn clone(&self) -> NnsNeuronListRequest
fn clone(&self) -> NnsNeuronListRequest
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 NnsNeuronListRequest
impl Debug for NnsNeuronListRequest
impl Eq for NnsNeuronListRequest
Source§impl PartialEq for NnsNeuronListRequest
impl PartialEq for NnsNeuronListRequest
impl StructuralPartialEq for NnsNeuronListRequest
Auto Trait Implementations§
impl Freeze for NnsNeuronListRequest
impl RefUnwindSafe for NnsNeuronListRequest
impl Send for NnsNeuronListRequest
impl Sync for NnsNeuronListRequest
impl Unpin for NnsNeuronListRequest
impl UnsafeUnpin for NnsNeuronListRequest
impl UnwindSafe for NnsNeuronListRequest
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