pub struct ShutdownChannelParams {
pub channel_id: Hash256,
pub close_script: Option<Script>,
pub fee_rate: Option<u64>,
pub force: Option<bool>,
}Expand description
Parameters for shutting down a channel.
Fields§
§channel_id: Hash256The channel ID of the channel to shut down
close_script: Option<Script>The script used to receive the channel balance, only support secp256k1_blake160_sighash_all script for now
default is default_funding_lock_script in CkbConfig
fee_rate: Option<u64>The fee rate for the closing transaction, the fee will be deducted from the closing initiator’s channel balance default is 1000 shannons/KW
force: Option<bool>Whether to force the channel to close, when set to false, close_script and fee_rate should be set, default is false.
When set to true, close_script and fee_rate will be ignored and will use the default value when opening the channel.
Trait Implementations§
Source§impl Clone for ShutdownChannelParams
impl Clone for ShutdownChannelParams
Source§fn clone(&self) -> ShutdownChannelParams
fn clone(&self) -> ShutdownChannelParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ShutdownChannelParams
impl Debug for ShutdownChannelParams
Source§impl<'de> Deserialize<'de> for ShutdownChannelParams
impl<'de> Deserialize<'de> for ShutdownChannelParams
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 JsonSchema for ShutdownChannelParams
impl JsonSchema for ShutdownChannelParams
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl !Freeze for ShutdownChannelParams
impl RefUnwindSafe for ShutdownChannelParams
impl Send for ShutdownChannelParams
impl Sync for ShutdownChannelParams
impl Unpin for ShutdownChannelParams
impl UnsafeUnpin for ShutdownChannelParams
impl UnwindSafe for ShutdownChannelParams
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