pub struct CanisterRequestRef<'a> {
pub canister: &'a Principal,
pub method: &'a str,
pub params: &'a ByteBufB64,
}Expand description
Borrowed request to an ICP canister with Candid-encoded parameters.
Fields§
§canister: &'a PrincipalThe target canister’s principal ID
method: &'a strThe method name to call on the canister
params: &'a ByteBufB64Candid-encoded parameters for the canister call. Parameters should be provided as a tuple, where each element represents a single argument. Examples:
(): No arguments;(1,): Single argument;(1, "hello", 3.14): Three arguments.
Trait Implementations§
Source§impl<'a> Clone for CanisterRequestRef<'a>
impl<'a> Clone for CanisterRequestRef<'a>
Source§fn clone(&self) -> CanisterRequestRef<'a>
fn clone(&self) -> CanisterRequestRef<'a>
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<'a> Debug for CanisterRequestRef<'a>
impl<'a> Debug for CanisterRequestRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for CanisterRequestRef<'a>
impl<'a> RefUnwindSafe for CanisterRequestRef<'a>
impl<'a> Send for CanisterRequestRef<'a>
impl<'a> Sync for CanisterRequestRef<'a>
impl<'a> Unpin for CanisterRequestRef<'a>
impl<'a> UnsafeUnpin for CanisterRequestRef<'a>
impl<'a> UnwindSafe for CanisterRequestRef<'a>
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