pub struct ExternalInput<'f, 'a> { /* private fields */ }Expand description
External input builder.
Implementations§
Source§impl<'a> ExternalInput<'_, 'a>
impl<'a> ExternalInput<'_, 'a>
Sourcepub fn build_message(
&self,
address: &StdAddr,
) -> Result<UnsignedExternalMessage>
pub fn build_message( &self, address: &StdAddr, ) -> Result<UnsignedExternalMessage>
Builds an external message to the specified address.
Sourcepub fn build_message_without_signature(
&self,
address: &StdAddr,
) -> Result<(u32, OwnedMessage)>
pub fn build_message_without_signature( &self, address: &StdAddr, ) -> Result<(u32, OwnedMessage)>
Builds an exteranl message to the specified address without signature.
Returns an expiration timestamp along with message.
Sourcepub fn build_input(&self) -> Result<UnsignedBody>
pub fn build_input(&self) -> Result<UnsignedBody>
Builds an external message body.
Sourcepub fn build_input_without_signature(&self) -> Result<(u32, Cell)>
pub fn build_input_without_signature(&self) -> Result<(u32, Cell)>
Builds an external message body without signature.
Sourcepub fn set_expire_at(&mut self, expire_at: u32)
pub fn set_expire_at(&mut self, expire_at: u32)
Use the specified expiration timestamp for the expire header.
Sourcepub fn with_expire_at(self, expire_at: u32) -> Self
pub fn with_expire_at(self, expire_at: u32) -> Self
Use the specified expiration timestamp for the expire header.
Sourcepub fn set_pubkey(&mut self, pubkey: &'a VerifyingKey)
pub fn set_pubkey(&mut self, pubkey: &'a VerifyingKey)
Use the specified public key for the pubkey header.
Sourcepub fn with_pubkey(self, pubkey: &'a VerifyingKey) -> Self
pub fn with_pubkey(self, pubkey: &'a VerifyingKey) -> Self
Use the specified public key for the pubkey header.
Sourcepub fn set_address(&mut self, address: &'a StdAddr)
pub fn set_address(&mut self, address: &'a StdAddr)
Use the specified address for ABIv2.3 signature.
Sourcepub fn with_address(self, address: &'a StdAddr) -> Self
pub fn with_address(self, address: &'a StdAddr) -> Self
Use the specified address for ABIv2.3 signature.
Trait Implementations§
Source§impl<'f, 'a> Clone for ExternalInput<'f, 'a>
impl<'f, 'a> Clone for ExternalInput<'f, 'a>
Source§fn clone(&self) -> ExternalInput<'f, 'a>
fn clone(&self) -> ExternalInput<'f, 'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'f, 'a> Freeze for ExternalInput<'f, 'a>
impl<'f, 'a> !RefUnwindSafe for ExternalInput<'f, 'a>
impl<'f, 'a> Send for ExternalInput<'f, 'a>
impl<'f, 'a> Sync for ExternalInput<'f, 'a>
impl<'f, 'a> Unpin for ExternalInput<'f, 'a>
impl<'f, 'a> !UnwindSafe for ExternalInput<'f, '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