pub struct PrivatePaymentList {
pub payment_endpoints: HashMap<PaymentEndpointIdentifier, PaymentEndpointPayload>,
/* private fields */
}Expand description
Versioned Private Payment List sent over an established Encrypted Link.
Fields§
§payment_endpoints: HashMap<PaymentEndpointIdentifier, PaymentEndpointPayload>Complete Payment List carried by this Latest-State Message.
Implementations§
Source§impl PrivatePaymentList
impl PrivatePaymentList
Sourcepub fn new(
app_id: PaykitAppId,
payment_endpoints: HashMap<PaymentEndpointIdentifier, PaymentEndpointPayload>,
) -> Self
pub fn new( app_id: PaykitAppId, payment_endpoints: HashMap<PaymentEndpointIdentifier, PaymentEndpointPayload>, ) -> Self
Construct a Private Payment List using protocol version 1 and the
paykit.private_payment_list message kind.
payment_endpoints is the complete list to share, not a patch.
Sourcepub fn kind(&self) -> PrivateMessageKind
pub fn kind(&self) -> PrivateMessageKind
Private Message Kind used by this list message.
Sourcepub fn app_id(&self) -> &PaykitAppId
pub fn app_id(&self) -> &PaykitAppId
App that published this Private Payment List.
Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true when this private list message contains no Payment Endpoints.
Sourcepub fn get(
&self,
identifier: &PaymentEndpointIdentifier,
) -> Option<&PaymentEndpointPayload>
pub fn get( &self, identifier: &PaymentEndpointIdentifier, ) -> Option<&PaymentEndpointPayload>
Look up a Payment Endpoint Payload by Payment Endpoint Identifier.
Trait Implementations§
Source§impl Clone for PrivatePaymentList
impl Clone for PrivatePaymentList
Source§impl Debug for PrivatePaymentList
impl Debug for PrivatePaymentList
impl Eq for PrivatePaymentList
Source§impl PartialEq for PrivatePaymentList
impl PartialEq for PrivatePaymentList
impl StructuralPartialEq for PrivatePaymentList
Auto Trait Implementations§
impl Freeze for PrivatePaymentList
impl RefUnwindSafe for PrivatePaymentList
impl Send for PrivatePaymentList
impl Sync for PrivatePaymentList
impl Unpin for PrivatePaymentList
impl UnsafeUnpin for PrivatePaymentList
impl UnwindSafe for PrivatePaymentList
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