Enum ethjson::misc::NewDappsPolicy [−][src]
Accounts policy for new dapps.
Variants
AllAccounts
All accounts are exposed by default.
Fields of AllAccounts
default: Address | Default account, which should be returned as the first one. |
Whitelist(Vec<Address>)
Only accounts listed here are exposed by default for new dapps.
Methods
impl NewDappsPolicy
[src]
impl NewDappsPolicy
pub fn read<R, S, D>(reader: R) -> Result<HashMap<D, S>, Error> where
R: Read,
D: From<String> + Hash + Eq,
S: From<NewDappsPolicy> + Clone,
[src]
pub fn read<R, S, D>(reader: R) -> Result<HashMap<D, S>, Error> where
R: Read,
D: From<String> + Hash + Eq,
S: From<NewDappsPolicy> + Clone,
Read a hash map of DappId -> $name
pub fn write<W, S, D>(m: &HashMap<D, S>, writer: &mut W) -> Result<(), Error> where
W: Write,
D: Into<String> + Hash + Eq + Clone,
S: Into<NewDappsPolicy> + Clone,
[src]
pub fn write<W, S, D>(m: &HashMap<D, S>, writer: &mut W) -> Result<(), Error> where
W: Write,
D: Into<String> + Hash + Eq + Clone,
S: Into<NewDappsPolicy> + Clone,
Write a hash map of DappId -> $name
Trait Implementations
impl Clone for NewDappsPolicy
[src]
impl Clone for NewDappsPolicy
fn clone(&self) -> NewDappsPolicy
[src]
fn clone(&self) -> NewDappsPolicy
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for NewDappsPolicy
[src]
impl Debug for NewDappsPolicy
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for NewDappsPolicy
[src]
impl PartialEq for NewDappsPolicy
fn eq(&self, other: &NewDappsPolicy) -> bool
[src]
fn eq(&self, other: &NewDappsPolicy) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &NewDappsPolicy) -> bool
[src]
fn ne(&self, other: &NewDappsPolicy) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for NewDappsPolicy
impl Send for NewDappsPolicy
impl Sync for NewDappsPolicy
impl Sync for NewDappsPolicy