pub struct ChannelVerify<'a> {
pub common_fields: CommonFields<'a>,
pub amount: XRPAmount<'a>,
pub channel_id: Cow<'a, str>,
pub public_key: Cow<'a, str>,
pub signature: Cow<'a, str>,
}
Expand description
The channel_verify method checks the validity of a signature that can be used to redeem a specific amount of XRP from a payment channel.
Fields§
§common_fields: CommonFields<'a>
The common fields shared by all requests.
amount: XRPAmount<'a>
The amount of XRP, in drops, the provided signature authorizes.
channel_id: Cow<'a, str>
The Channel ID of the channel that provides the XRP. This is a 64-character hexadecimal string.
public_key: Cow<'a, str>
The public key of the channel and the key pair that was used to create the signature, in hexadecimal or the XRP Ledger’s base58 format.
signature: Cow<'a, str>
The signature to verify, in hexadecimal.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for ChannelVerify<'a>
impl<'a> Clone for ChannelVerify<'a>
Source§fn clone(&self) -> ChannelVerify<'a>
fn clone(&self) -> ChannelVerify<'a>
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<'a> Debug for ChannelVerify<'a>
impl<'a> Debug for ChannelVerify<'a>
Source§impl<'de, 'a> Deserialize<'de> for ChannelVerify<'a>
impl<'de, 'a> Deserialize<'de> for ChannelVerify<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> From<ChannelVerify<'a>> for XRPLRequest<'a>
impl<'a> From<ChannelVerify<'a>> for XRPLRequest<'a>
Source§fn from(request: ChannelVerify<'a>) -> Self
fn from(request: ChannelVerify<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Model for ChannelVerify<'a>
impl<'a> Model for ChannelVerify<'a>
Source§fn get_errors(&self) -> XRPLModelResult<()>
fn get_errors(&self) -> XRPLModelResult<()>
Collects a models errors and returns the first error that occurs.
Source§fn validate(&self) -> XRPLModelResult<()>
fn validate(&self) -> XRPLModelResult<()>
Simply forwards the error from
get_errors
if there was one.Source§impl<'a> PartialEq for ChannelVerify<'a>
impl<'a> PartialEq for ChannelVerify<'a>
Source§impl<'a> Request<'a> for ChannelVerify<'a>
impl<'a> Request<'a> for ChannelVerify<'a>
fn get_common_fields(&self) -> &CommonFields<'a>
fn get_common_fields_mut(&mut self) -> &mut CommonFields<'a>
Source§impl<'a> Serialize for ChannelVerify<'a>
impl<'a> Serialize for ChannelVerify<'a>
impl<'a> Eq for ChannelVerify<'a>
impl<'a> StructuralPartialEq for ChannelVerify<'a>
Auto Trait Implementations§
impl<'a> Freeze for ChannelVerify<'a>
impl<'a> RefUnwindSafe for ChannelVerify<'a>
impl<'a> Send for ChannelVerify<'a>
impl<'a> Sync for ChannelVerify<'a>
impl<'a> Unpin for ChannelVerify<'a>
impl<'a> UnwindSafe for ChannelVerify<'a>
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.