pub struct SubscriptionBinding {
pub publisher: u64,
pub channel: ChannelName,
pub token_bytes: Option<Vec<u8>>,
}Expand description
One subscription a daemon holds on a specific publisher for a
specific channel. The publisher is a node_id; the token
(if present) is the serialized
PermissionToken
bytes the daemon presented when it subscribed — stored as raw
bytes (not a typed token) so the ledger can round-trip through a
SDK version mismatch without re-verifying signatures source-side.
Fields§
§publisher: u64node_id of the publisher this subscription targets.
channel: ChannelNameCanonical channel name. Validated via ChannelName so an
attacker-crafted snapshot can’t smuggle a path-traversal
segment through the bindings list and escape storage sandboxes
on the target.
token_bytes: Option<Vec<u8>>Serialized PermissionToken, if the subscribe carried one.
None on open (unauthenticated) channels.
Trait Implementations§
Source§impl Clone for SubscriptionBinding
impl Clone for SubscriptionBinding
Source§fn clone(&self) -> SubscriptionBinding
fn clone(&self) -> SubscriptionBinding
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 SubscriptionBinding
impl Debug for SubscriptionBinding
impl Eq for SubscriptionBinding
Source§impl PartialEq for SubscriptionBinding
impl PartialEq for SubscriptionBinding
Source§fn eq(&self, other: &SubscriptionBinding) -> bool
fn eq(&self, other: &SubscriptionBinding) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SubscriptionBinding
Auto Trait Implementations§
impl Freeze for SubscriptionBinding
impl RefUnwindSafe for SubscriptionBinding
impl Send for SubscriptionBinding
impl Sync for SubscriptionBinding
impl Unpin for SubscriptionBinding
impl UnsafeUnpin for SubscriptionBinding
impl UnwindSafe for SubscriptionBinding
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.