pub struct Account<'a> { /* private fields */ }Implementations§
Source§impl<'a> Account<'a>
impl<'a> Account<'a>
pub fn sender() -> Account<'static>
pub fn sender_id() -> String
pub fn load(key: &'a str) -> Account<'a>
pub fn get(&self, key: &str) -> ProcessResult<Vec<u8>>
pub fn get_string(&self, key: &str) -> ProcessResult<String>
pub fn get_u64(&self, key: &str) -> ProcessResult<u64>
pub fn set(&self, key: &str, value: &[u8]) -> ProcessResult<()>
pub fn set_string(&self, key: &str, value: &str) -> ProcessResult<()>
pub fn set_u64(&self, key: &str, value: u64) -> ProcessResult<()>
Auto Trait Implementations§
impl<'a> Freeze for Account<'a>
impl<'a> RefUnwindSafe for Account<'a>
impl<'a> Send for Account<'a>
impl<'a> Sync for Account<'a>
impl<'a> Unpin for Account<'a>
impl<'a> UnwindSafe for Account<'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