Struct ic_agent::agent::signed::SignedQuery
source · pub struct SignedQuery {
pub ingress_expiry: u64,
pub sender: Principal,
pub canister_id: Principal,
pub method_name: String,
pub arg: Vec<u8, Global>,
pub effective_canister_id: Principal,
pub signed_query: Vec<u8, Global>,
}Expand description
A signed query request message. Produced by QueryBuilder::sign.
Fields§
§ingress_expiry: u64The Unix timestamp that the request will expire at.
sender: PrincipalThe principal ID of the caller.
canister_id: PrincipalThe principal ID of the canister being called.
method_name: StringThe name of the canister method being called.
arg: Vec<u8, Global>The argument blob to be passed to the method.
effective_canister_id: PrincipalThe effective canister ID of the destination.
signed_query: Vec<u8, Global>The CBOR-encoded authentication envelope for the request.
Trait Implementations§
source§impl Clone for SignedQuery
impl Clone for SignedQuery
source§fn clone(&self) -> SignedQuery
fn clone(&self) -> SignedQuery
Returns a copy of the value. Read more
1.0.0 · 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 SignedQuery
impl Debug for SignedQuery
source§impl<'de> Deserialize<'de> for SignedQuery
impl<'de> Deserialize<'de> for SignedQuery
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<SignedQuery, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<SignedQuery, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for SignedQuery
impl Serialize for SignedQuery
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for SignedQuery
impl Send for SignedQuery
impl Sync for SignedQuery
impl Unpin for SignedQuery
impl UnwindSafe for SignedQuery
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