pub struct SnsLookupRequest {
pub network: String,
pub source_endpoint: String,
pub now_unix_secs: u64,
/* private fields */
}Expand description
SnsLookupRequest
Shared request accepted by direct SNS info, token, params, swap, and upgrade builders.
Fields§
§network: String§source_endpoint: String§now_unix_secs: u64Implementations§
Source§impl SnsLookupRequest
impl SnsLookupRequest
Sourcepub fn new(
network: impl Into<String>,
source_endpoint: impl Into<String>,
now_unix_secs: u64,
input: impl Into<String>,
) -> Result<Self, SnsLookupError>
pub fn new( network: impl Into<String>, source_endpoint: impl Into<String>, now_unix_secs: u64, input: impl Into<String>, ) -> Result<Self, SnsLookupError>
Parse the selector once while retaining the original caller input.
Sourcepub fn input(&self) -> &str
pub fn input(&self) -> &str
Original caller selector, retained independently of canonical principal text.
Sourcepub const fn id(&self) -> Option<usize>
pub const fn id(&self) -> Option<usize>
Numeric SNS-W list position when the caller selected one.
Sourcepub const fn root_canister_id(&self) -> Option<&Principal>
pub const fn root_canister_id(&self) -> Option<&Principal>
Parsed root principal when the caller selected a stable SNS identity.
Trait Implementations§
Source§impl Clone for SnsLookupRequest
impl Clone for SnsLookupRequest
Source§impl Debug for SnsLookupRequest
impl Debug for SnsLookupRequest
impl Eq for SnsLookupRequest
Source§impl PartialEq for SnsLookupRequest
impl PartialEq for SnsLookupRequest
impl StructuralPartialEq for SnsLookupRequest
Auto Trait Implementations§
impl Freeze for SnsLookupRequest
impl RefUnwindSafe for SnsLookupRequest
impl Send for SnsLookupRequest
impl Sync for SnsLookupRequest
impl Unpin for SnsLookupRequest
impl UnsafeUnpin for SnsLookupRequest
impl UnwindSafe for SnsLookupRequest
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