pub struct PreparedMessage {
pub message_bytes: Vec<u8>,
pub order_id: Option<String>,
pub order_ids: Option<Vec<String>>,
pub actions: Vec<Value>,
pub account: String,
pub signer: String,
pub nonce: u64,
}Expand description
Prepared message for external signing.
Fields§
§message_bytes: Vec<u8>Raw canonical BULK-SDK message bytes to sign.
order_id: Option<String>Optional pre-computed order ID for single order transactions.
order_ids: Option<Vec<String>>Optional pre-computed order IDs for multi-order transactions.
actions: Vec<Value>Compact tagged actions.
account: StringAccount pubkey (base58).
signer: StringSigner pubkey (base58).
nonce: u64Nonce.
Implementations§
Source§impl PreparedMessage
impl PreparedMessage
pub fn message_base58(&self) -> String
pub fn message_base64(&self) -> String
pub fn message_hex(&self) -> String
Trait Implementations§
Source§impl Clone for PreparedMessage
impl Clone for PreparedMessage
Source§fn clone(&self) -> PreparedMessage
fn clone(&self) -> PreparedMessage
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 PreparedMessage
impl Debug for PreparedMessage
Source§impl<'de> Deserialize<'de> for PreparedMessage
impl<'de> Deserialize<'de> for PreparedMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PreparedMessage
impl RefUnwindSafe for PreparedMessage
impl Send for PreparedMessage
impl Sync for PreparedMessage
impl Unpin for PreparedMessage
impl UnsafeUnpin for PreparedMessage
impl UnwindSafe for PreparedMessage
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more