pub struct RequestInfo { /* private fields */ }Expand description
Represents information associated with a withdrawal request.
This structure holds the commitment hash, commitment opening, private attributes openings, the wallet secret (scalar), and the expiration date related to a withdrawal request.
Implementations§
Source§impl RequestInfo
impl RequestInfo
pub fn get_joined_commitment_hash(&self) -> &G1Projective
pub fn get_joined_commitment_opening(&self) -> &Scalar
pub fn get_private_attributes_openings(&self) -> &[Scalar]
pub fn get_v(&self) -> &Scalar
pub fn get_expiration_date(&self) -> &Scalar
pub fn get_t_type(&self) -> &Scalar
Source§impl RequestInfo
impl RequestInfo
pub fn to_bytes(&self) -> Vec<u8> ⓘ
pub fn from_bytes(bytes: &[u8]) -> Result<RequestInfo, CompactEcashError>
Trait Implementations§
Source§impl Base58 for RequestInfo
impl Base58 for RequestInfo
Source§impl Bytable for RequestInfo
impl Bytable for RequestInfo
fn to_byte_vec(&self) -> Vec<u8> ⓘ
fn try_from_byte_slice(slice: &[u8]) -> Result<RequestInfo, CompactEcashError>
Source§impl Clone for RequestInfo
impl Clone for RequestInfo
Source§fn clone(&self) -> RequestInfo
fn clone(&self) -> RequestInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RequestInfo
impl Debug for RequestInfo
Source§impl<'de> Deserialize<'de> for RequestInfo
impl<'de> Deserialize<'de> for RequestInfo
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RequestInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RequestInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Drop for RequestInfo
impl Drop for RequestInfo
Source§impl Serialize for RequestInfo
impl Serialize for RequestInfo
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<&[u8]> for RequestInfo
impl TryFrom<&[u8]> for RequestInfo
Source§type Error = CompactEcashError
type Error = CompactEcashError
The type returned in the event of a conversion error.
Source§fn try_from(bytes: &[u8]) -> Result<RequestInfo, CompactEcashError>
fn try_from(bytes: &[u8]) -> Result<RequestInfo, CompactEcashError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for RequestInfo
impl RefUnwindSafe for RequestInfo
impl Send for RequestInfo
impl Sync for RequestInfo
impl Unpin for RequestInfo
impl UnsafeUnpin for RequestInfo
impl UnwindSafe for RequestInfo
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more