pub struct ChannelInfo {
pub channel_outpoint: OutPoint,
pub node1: Pubkey,
pub node2: Pubkey,
pub created_timestamp: u64,
pub update_info_of_node1: Option<ChannelUpdateInfo>,
pub update_info_of_node2: Option<ChannelUpdateInfo>,
pub capacity: u128,
pub chain_hash: Hash256,
pub udt_type_script: Option<Script>,
}Expand description
The Channel information.
Fields§
§channel_outpoint: OutPointThe outpoint of the channel.
node1: PubkeyThe identity public key of the first node (secp256k1 compressed, hex string).
node2: PubkeyThe identity public key of the second node (secp256k1 compressed, hex string).
created_timestamp: u64The created timestamp of the channel, which is the block header timestamp of the block that contains the channel funding transaction.
update_info_of_node1: Option<ChannelUpdateInfo>The update info from node1 to node2, e.g. timestamp, fee_rate, tlc_expiry_delta, tlc_minimum_value
update_info_of_node2: Option<ChannelUpdateInfo>The update info from node2 to node1, e.g. timestamp, fee_rate, tlc_expiry_delta, tlc_minimum_value
capacity: u128The capacity of the channel.
chain_hash: Hash256The chain hash of the channel.
udt_type_script: Option<Script>The UDT type script of the channel.
Trait Implementations§
Source§impl Clone for ChannelInfo
impl Clone for ChannelInfo
Source§fn clone(&self) -> ChannelInfo
fn clone(&self) -> ChannelInfo
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 ChannelInfo
impl Debug for ChannelInfo
Source§impl<'de> Deserialize<'de> for ChannelInfo
impl<'de> Deserialize<'de> for ChannelInfo
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 ChannelInfo
impl JsonSchema for ChannelInfo
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 ChannelInfo
impl RefUnwindSafe for ChannelInfo
impl Send for ChannelInfo
impl Sync for ChannelInfo
impl Unpin for ChannelInfo
impl UnsafeUnpin for ChannelInfo
impl UnwindSafe for ChannelInfo
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