pub struct SettingsValue(pub UniValue);
Expand description
| Settings value type | (string/integer/boolean/null variant). | | @note UniValue is used here for convenience | and because it can be easily serialized | in a readable format. But any other | variant type that can be assigned | strings, int64_t, and bool values and | has get_str(), get_int64(), get_bool(), | isNum(), isBool(), isFalse(), isTrue() | and | isNull() methods can be substituted if | there’s a need to move away from | UniValue. (An implementation with | boost::variant was posted at | https://github.com/bitcoin/bitcoin/pull/15934/files#r337691812)
Tuple Fields§
§0: UniValue
Trait Implementations§
Source§impl Display for SettingsValue
impl Display for SettingsValue
Source§impl From<&SettingsValue> for SettingsSpan
impl From<&SettingsValue> for SettingsSpan
Source§fn from(value: &SettingsValue) -> Self
fn from(value: &SettingsValue) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SettingsValue
impl PartialEq for SettingsValue
impl Eq for SettingsValue
Auto Trait Implementations§
impl Freeze for SettingsValue
impl RefUnwindSafe for SettingsValue
impl Send for SettingsValue
impl Sync for SettingsValue
impl Unpin for SettingsValue
impl UnwindSafe for SettingsValue
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.