pub struct PrettyAction {
pub sender: AccountNumber,
pub service: String,
pub method: MethodNumber,
pub raw_data: Option<Hex<Vec<u8>>>,
pub data: Option<Value>,
}Fields§
§sender: AccountNumberAccount sending the action
service: StringService to execute the action
method: MethodNumberService method to execute
raw_data: Option<Hex<Vec<u8>>>Data for the method
data: Option<Value>Implementations§
Source§impl PrettyAction
impl PrettyAction
pub fn into_action(self, schemas: &SchemaMap) -> Result<Action, Error>
pub fn to_action(&self, schemas: &SchemaMap) -> Result<Action, Error>
pub fn parse_data_as<T: UnpackOwned + DeserializeOwned>( &self, ) -> Result<T, Error>
pub async fn load_schemas<F: SchemaFetcher>( &self, fetcher: &F, schemas: &mut SchemaMap, ) -> Result<(), Error>
pub fn get_required_accounts( &self, accounts: &mut Vec<AccountNumber>, services: &mut Vec<AccountNumber>, schemas: &SchemaMap, ) -> Result<(), Error>
Trait Implementations§
Source§impl Clone for PrettyAction
impl Clone for PrettyAction
Source§fn clone(&self) -> PrettyAction
fn clone(&self) -> PrettyAction
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 PrettyAction
impl Debug for PrettyAction
Source§impl Default for PrettyAction
impl Default for PrettyAction
Source§fn default() -> PrettyAction
fn default() -> PrettyAction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PrettyAction
impl<'de> Deserialize<'de> for PrettyAction
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
impl Eq for PrettyAction
Source§impl PartialEq for PrettyAction
impl PartialEq for PrettyAction
Source§impl Serialize for PrettyAction
impl Serialize for PrettyAction
impl StructuralPartialEq for PrettyAction
Auto Trait Implementations§
impl Freeze for PrettyAction
impl RefUnwindSafe for PrettyAction
impl Send for PrettyAction
impl Sync for PrettyAction
impl Unpin for PrettyAction
impl UnsafeUnpin for PrettyAction
impl UnwindSafe for PrettyAction
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.