Struct bip21::EmptyState
source · [−]pub struct EmptyState;Expand description
This is a state used to deserialize NoExtras - it doesn’t expect any parameters.
Trait Implementations
sourceimpl Clone for EmptyState
impl Clone for EmptyState
sourcefn clone(&self) -> EmptyState
fn clone(&self) -> EmptyState
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for EmptyState
impl Debug for EmptyState
sourceimpl Default for EmptyState
impl Default for EmptyState
sourcefn default() -> EmptyState
fn default() -> EmptyState
Returns the “default value” for a type. Read more
sourceimpl<'de> DeserializationState<'de> for EmptyState
impl<'de> DeserializationState<'de> for EmptyState
sourcefn is_param_known(&self, _key: &str) -> bool
fn is_param_known(&self, _key: &str) -> bool
Returns
true if the parameter is known. Read moresourcefn deserialize_temp(
&mut self,
_key: &str,
_value: Param<'_>
) -> Result<ParamKind, <Self::Value as DeserializationError>::Error>
fn deserialize_temp(
&mut self,
_key: &str,
_value: Param<'_>
) -> Result<ParamKind, <Self::Value as DeserializationError>::Error>
Deserializes a temporary. Read more
sourcefn finalize(
self
) -> Result<Self::Value, <Self::Value as DeserializationError>::Error>
fn finalize(
self
) -> Result<Self::Value, <Self::Value as DeserializationError>::Error>
Signals that all parameters were processed. Read more
sourcefn deserialize_borrowed(
&mut self,
key: &'de str,
value: Param<'de>
) -> Result<ParamKind, <Self::Value as DeserializationError>::Error>
fn deserialize_borrowed(
&mut self,
key: &'de str,
value: Param<'de>
) -> Result<ParamKind, <Self::Value as DeserializationError>::Error>
Deserializes a borrowed value possibly avoiding cloning. Read more
impl Copy for EmptyState
Auto Trait Implementations
impl RefUnwindSafe for EmptyState
impl Send for EmptyState
impl Sync for EmptyState
impl Unpin for EmptyState
impl UnwindSafe for EmptyState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more