#[non_exhaustive]pub enum ClaimPurpose {
SelfConnection,
Helper,
Relay,
Prefix {
module_id: String,
},
}Expand description
The authority requested for one additional connection. Only a prefix claim carries a module id. The daemon checks its grammar and that the minting module owns the longest matching reserved prefix, excluding exact reserved or gated ids and prefixes without an owner.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for ClaimPurpose
impl Clone for ClaimPurpose
Source§impl Debug for ClaimPurpose
impl Debug for ClaimPurpose
Source§impl<'de> Deserialize<'de> for ClaimPurpose
impl<'de> Deserialize<'de> for ClaimPurpose
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ClaimPurpose
Source§impl PartialEq for ClaimPurpose
impl PartialEq for ClaimPurpose
Source§impl Serialize for ClaimPurpose
impl Serialize for ClaimPurpose
impl StructuralPartialEq for ClaimPurpose
Auto Trait Implementations§
impl Forget for ClaimPurpose
impl Freeze for ClaimPurpose
impl Move for ClaimPurpose
impl RefUnwindSafe for ClaimPurpose
impl Send for ClaimPurpose
impl Sync for ClaimPurpose
impl Unpin for ClaimPurpose
impl UnsafeUnpin for ClaimPurpose
impl UnwindSafe for ClaimPurpose
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