Struct bitcoin_settings::SettingsValue
source · 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: UniValueTrait 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<SettingsValue> for SettingsValue
impl PartialEq<SettingsValue> for SettingsValue
source§fn eq(&self, other: &SettingsValue) -> bool
fn eq(&self, other: &SettingsValue) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for SettingsValue
Auto Trait Implementations§
impl RefUnwindSafe for SettingsValue
impl Send for SettingsValue
impl Sync for SettingsValue
impl Unpin for SettingsValue
impl UnwindSafe for SettingsValue
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more