pub struct Request { /* private fields */ }Implementations§
Source§impl Request
impl Request
pub fn new( roles: Vec<String>, org_id: String, public_key: String, payload: Vec<u8>, ) -> Request
pub fn get_roles(&self) -> Vec<String>
pub fn get_org_id(&self) -> String
pub fn get_public_key(&self) -> String
pub fn get_state( &self, address: String, ) -> Result<Option<Vec<u8>>, WasmSdkError>
pub fn get_payload<T>(&self) -> Vec<u8> ⓘ
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
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