pub struct Me {
pub alias: String,
pub public_key: String,
pub private_key: String,
pub verbs: Verbs,
pub conn: Connection,
}Expand description
Represents a local encrypted identity used in dApps or Web3 environments.
Fields§
§alias: String§public_key: String§private_key: String§verbs: Verbs§conn: ConnectionImplementations§
Source§impl Me
impl Me
Sourcepub fn display(&self) -> Result<String, MeError>
pub fn display(&self) -> Result<String, MeError>
Returns a pretty-printed JSON representation of the Me struct.
Sourcepub fn new(alias: &str, _hash: &str) -> Result<(Self, bool), MeError>
pub fn new(alias: &str, _hash: &str) -> Result<(Self, bool), MeError>
Initializes a new Me instance with the given alias and hash.
pub fn be(&mut self, key: &str, value: &str) -> Result<(), MeError>
pub fn do_(&mut self, key: &str, value: &str) -> Result<(), MeError>
pub fn have(&mut self, key: &str, value: &str) -> Result<(), MeError>
pub fn at(&mut self, key: &str, value: &str) -> Result<(), MeError>
pub fn relate(&mut self, key: &str, value: &str) -> Result<(), MeError>
pub fn react(&mut self, key: &str, value: &str) -> Result<(), MeError>
pub fn communication(&mut self, key: &str, value: &str) -> Result<(), MeError>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Me
impl !RefUnwindSafe for Me
impl Send for Me
impl !Sync for Me
impl Unpin for Me
impl !UnwindSafe for Me
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