Struct zaino_proto::proto::proposal::ChangeValue
source · pub struct ChangeValue {
pub value: u64,
pub value_pool: i32,
pub memo: Option<MemoBytes>,
pub is_ephemeral: bool,
}
Expand description
A proposed change or ephemeral output. If the transparent value pool is
selected, the memo
field must be null.
When the isEphemeral
field of a ChangeValue
is set, it represents
an ephemeral output, which must be spent by a subsequent step. This is
only supported for transparent outputs. Each ephemeral output will be
given a unique t-address.
Fields§
§value: u64
The value of a change or ephemeral output to be created, in zatoshis.
value_pool: i32
The value pool in which the change or ephemeral output should be created.
memo: Option<MemoBytes>
The optional memo that should be associated with the newly created output. Memos must not be present for transparent outputs.
is_ephemeral: bool
Whether this is to be an ephemeral output.
Implementations§
source§impl ChangeValue
impl ChangeValue
sourcepub fn value_pool(&self) -> ValuePool
pub fn value_pool(&self) -> ValuePool
Returns the enum value of value_pool
, or the default if the field is set to an invalid enum value.
sourcepub fn set_value_pool(&mut self, value: ValuePool)
pub fn set_value_pool(&mut self, value: ValuePool)
Sets value_pool
to the provided enum value.
Trait Implementations§
source§impl Clone for ChangeValue
impl Clone for ChangeValue
source§fn clone(&self) -> ChangeValue
fn clone(&self) -> ChangeValue
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ChangeValue
impl Debug for ChangeValue
source§impl Default for ChangeValue
impl Default for ChangeValue
source§impl Message for ChangeValue
impl Message for ChangeValue
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for ChangeValue
impl PartialEq for ChangeValue
source§fn eq(&self, other: &ChangeValue) -> bool
fn eq(&self, other: &ChangeValue) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ChangeValue
Auto Trait Implementations§
impl Freeze for ChangeValue
impl RefUnwindSafe for ChangeValue
impl Send for ChangeValue
impl Sync for ChangeValue
impl Unpin for ChangeValue
impl UnwindSafe for ChangeValue
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request