pub struct SnsProposalRequest {
pub network: String,
pub source_endpoint: String,
pub now_unix_secs: u64,
pub input: String,
pub proposal_id: u64,
pub icp_root: Option<PathBuf>,
pub verbose: bool,
pub show_ballots: bool,
}Expand description
SnsProposalRequest
Request accepted by the direct SNS proposal detail report builder.
Fields§
§network: String§source_endpoint: String§now_unix_secs: u64§input: String§proposal_id: u64§icp_root: Option<PathBuf>§verbose: bool§show_ballots: boolImplementations§
Source§impl SnsProposalRequest
impl SnsProposalRequest
pub fn new( network: impl Into<String>, source_endpoint: impl Into<String>, now_unix_secs: u64, input: impl Into<String>, proposal_id: u64, ) -> Self
pub fn with_icp_root(self, icp_root: impl Into<PathBuf>) -> Self
pub const fn with_verbose(self, verbose: bool) -> Self
pub const fn with_show_ballots(self, show_ballots: bool) -> Self
Trait Implementations§
Source§impl Clone for SnsProposalRequest
impl Clone for SnsProposalRequest
Source§fn clone(&self) -> SnsProposalRequest
fn clone(&self) -> SnsProposalRequest
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 SnsProposalRequest
impl Debug for SnsProposalRequest
impl Eq for SnsProposalRequest
Source§impl PartialEq for SnsProposalRequest
impl PartialEq for SnsProposalRequest
Source§fn eq(&self, other: &SnsProposalRequest) -> bool
fn eq(&self, other: &SnsProposalRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SnsProposalRequest
Auto Trait Implementations§
impl Freeze for SnsProposalRequest
impl RefUnwindSafe for SnsProposalRequest
impl Send for SnsProposalRequest
impl Sync for SnsProposalRequest
impl Unpin for SnsProposalRequest
impl UnsafeUnpin for SnsProposalRequest
impl UnwindSafe for SnsProposalRequest
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