pub struct HandlerPlatformEntry {
pub platform: String,
pub url_template: String,
pub entity: Option<String>,
}Expand description
One entry-point exposed by a handler.
Fields§
§platform: StringPlatform name (web, ios, android, custom). Opaque to us.
url_template: StringURL or URI template. May contain <bech32> placeholders that
the client must substitute with a NIP-19 entity.
entity: Option<String>Optional NIP-19 entity-type hint such as nevent, nprofile,
naddr. None matches the spec’s “generic” handler shape.
Implementations§
Trait Implementations§
Source§impl Clone for HandlerPlatformEntry
impl Clone for HandlerPlatformEntry
Source§fn clone(&self) -> HandlerPlatformEntry
fn clone(&self) -> HandlerPlatformEntry
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 HandlerPlatformEntry
impl Debug for HandlerPlatformEntry
impl Eq for HandlerPlatformEntry
Source§impl PartialEq for HandlerPlatformEntry
impl PartialEq for HandlerPlatformEntry
impl StructuralPartialEq for HandlerPlatformEntry
Auto Trait Implementations§
impl Freeze for HandlerPlatformEntry
impl RefUnwindSafe for HandlerPlatformEntry
impl Send for HandlerPlatformEntry
impl Sync for HandlerPlatformEntry
impl Unpin for HandlerPlatformEntry
impl UnsafeUnpin for HandlerPlatformEntry
impl UnwindSafe for HandlerPlatformEntry
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.