pub struct SignedVoucherAPI {
pub channel_addr: Address,
pub time_lock_min: ChainEpoch,
pub time_lock_max: ChainEpoch,
pub secret_pre_image: Vec<u8>,
pub extra: Option<ModVerifyParams>,
pub lane: u64,
pub nonce: u64,
pub amount: TokenAmount,
pub min_settle_height: ChainEpoch,
pub merges: Vec<Merge>,
pub signature: Option<Signature>,
}Fields§
§channel_addr: Address§time_lock_min: ChainEpoch§time_lock_max: ChainEpoch§secret_pre_image: Vec<u8>§extra: Option<ModVerifyParams>§lane: u64§nonce: u64§amount: TokenAmount§min_settle_height: ChainEpoch§merges: Vec<Merge>§signature: Option<Signature>Implementations§
Source§impl SignedVoucherAPI
impl SignedVoucherAPI
pub fn serialize<__S>(
__self: &SignedVoucher,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
Source§impl<'de> SignedVoucherAPI
impl<'de> SignedVoucherAPI
pub fn deserialize<__D>(
__deserializer: __D,
) -> Result<SignedVoucher, __D::Error>where
__D: Deserializer<'de>,
Trait Implementations§
Source§impl Clone for SignedVoucherAPI
impl Clone for SignedVoucherAPI
Source§fn clone(&self) -> SignedVoucherAPI
fn clone(&self) -> SignedVoucherAPI
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 SignedVoucherAPI
impl Debug for SignedVoucherAPI
Source§impl PartialEq for SignedVoucherAPI
impl PartialEq for SignedVoucherAPI
impl StructuralPartialEq for SignedVoucherAPI
Auto Trait Implementations§
impl Freeze for SignedVoucherAPI
impl RefUnwindSafe for SignedVoucherAPI
impl Send for SignedVoucherAPI
impl Sync for SignedVoucherAPI
impl Unpin for SignedVoucherAPI
impl UnwindSafe for SignedVoucherAPI
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> 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