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§

Formats the value using the given formatter. Read more
Converts to this type from the input type.
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Performs the conversion. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Convert type of a const pointer. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.