pub fn is_writeable(&self, key: &Key) -> bool {
        match key {
            Key::Account(_) | Key::Hash(_) => false,
            Key::URef(uref) => uref.is_writeable(),
            Key::Transfer(_) => false,
            Key::DeployInfo(_) => false,
            Key::EraInfo(_) => false,
            Key::Balance(_) => false,
            Key::Bid(_) => false,
            Key::Withdraw(_) => false,
            Key::Dictionary(_) => {
                // Dictionary is a special case that will not be readable by default, but the access
                // bits are verified from within API call.
                false
            }
            Key::SystemContractRegistry => false,
        }
    }
/// Tests whether writing to `key` is valid.
Tests whether writing to `key` is valid.
Tests whether writing to ` key ` is valid .
pub fn is_writeable(&self, key: &Key) -> bool {
        match key {
            Key::Account(_) | Key::Hash(_) => false,
            Key::URef(uref) => uref.is_writeable(),
            Key::Transfer(_) => false,
            Key::DeployInfo(_) => false,
            Key::EraInfo(_) => false,
            Key::Balance(_) => false,
            Key::Bid(_) => false,
            Key::Withdraw(_) => false,
            Key::Dictionary(_) => {
                // Dictionary is a special case that will not be readable by default, but the access
                // bits are verified from within API call.
                false
            }
            Key::SystemContractRegistry => false,
        }
    }
pub fn is_writeable ( & self , key : & Key ) -> bool { match key { Key :: Account ( _ ) | Key :: Hash ( _ ) => false , Key :: URef ( uref ) => uref . is_writeable ( ) , Key :: Transfer ( _ ) => false , Key :: DeployInfo ( _ ) => false , Key :: EraInfo ( _ ) => false , Key :: Balance ( _ ) => false , Key :: Bid ( _ ) => false , Key :: Withdraw ( _ ) => false , Key :: Dictionary ( _ ) => { // Dictionary is a special case that will not be readable by default, but the access // bits are verified from within API call. false } Key :: SystemContractRegistry => false , } }
Tests whether writing to `key` is valid.
Tests whether writing to ` key ` is valid .
&self
key
&Key
&self
key
&Key