pub struct ChannelGrant {
pub id: String,
pub key: String,
pub epoch: u64,
pub name: String,
}Expand description
One granted Channel inside a bundle (CORD-05 §1). Public Channels derive from
the community_root; a private Channel’s independent key travels here.
Fields§
§id: StringChannel id (32-byte hex).
key: StringChannel key (32-byte hex).
epoch: u64§name: StringTrait Implementations§
Source§impl Clone for ChannelGrant
impl Clone for ChannelGrant
Source§fn clone(&self) -> ChannelGrant
fn clone(&self) -> ChannelGrant
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 ChannelGrant
impl Debug for ChannelGrant
Source§impl<'de> Deserialize<'de> for ChannelGrant
impl<'de> Deserialize<'de> for ChannelGrant
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 PartialEq for ChannelGrant
impl PartialEq for ChannelGrant
Source§impl Serialize for ChannelGrant
impl Serialize for ChannelGrant
impl StructuralPartialEq for ChannelGrant
Auto Trait Implementations§
impl Freeze for ChannelGrant
impl RefUnwindSafe for ChannelGrant
impl Send for ChannelGrant
impl Sync for ChannelGrant
impl Unpin for ChannelGrant
impl UnsafeUnpin for ChannelGrant
impl UnwindSafe for ChannelGrant
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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