Enum tea_sdk::actors::payment_channel::txns::PaymentChannelTxn
pub enum PaymentChannelTxn {
OpenChannel {
item: ChannelItem,
auth_b64: String,
},
PayerEarlyTerminate {
channel_id: H160,
auth_b64: String,
},
Terminate {
channel_id: H160,
auth_b64: String,
from_user: H160,
},
PayerRefill {
channel_id: H160,
refill_amount: U256,
auth_b64: String,
},
UpdatePayment {
channel_id: H160,
payment_update_sig: String,
new_fund_remaining: U256,
close_channel: bool,
auth_b64: String,
},
ScheduledGasPayment {
timestamp: i64,
},
}
Variants§
Implementations§
§impl PaymentChannelTxn
impl PaymentChannelTxn
pub fn sign_content(&self) -> Result<String, Error>
Trait Implementations§
§impl Debug for PaymentChannelTxn
impl Debug for PaymentChannelTxn
§impl<'de> Deserialize<'de> for PaymentChannelTxn
impl<'de> Deserialize<'de> for PaymentChannelTxn
§fn deserialize<__D>(
__deserializer: __D
) -> Result<PaymentChannelTxn, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<PaymentChannelTxn, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Display for PaymentChannelTxn
impl Display for PaymentChannelTxn
§impl Serialize for PaymentChannelTxn
impl Serialize for PaymentChannelTxn
§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
Auto Trait Implementations§
impl RefUnwindSafe for PaymentChannelTxn
impl Send for PaymentChannelTxn
impl Sync for PaymentChannelTxn
impl Unpin for PaymentChannelTxn
impl UnwindSafe for PaymentChannelTxn
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