pub struct DeepLinkAction {
pub action_type: String,
pub target: String,
pub message: Option<String>,
pub call: Option<String>,
pub account: Option<String>,
}Expand description
What a link opens, as the frontend’s executeDeepLinkAction takes it.
Fields§
§action_type: Stringprofile | emoji_pack | chat | settings | nexus | requests | go | community_invite
target: StringAn npub, an naddr, a chat id, category[/section], an app id, a Vector link’s payload,
or an invite’s whole URL; empty for a place with nothing to name.
message: Option<String>For “chat”: the message to land on.
call: Option<String>For “chat”: a call answered from a notification, taken up once it rings here.
account: Option<String>The npub the action belongs to; dropped if a different account is live when it’s taken.
Trait Implementations§
Source§impl Clone for DeepLinkAction
impl Clone for DeepLinkAction
Source§impl Debug for DeepLinkAction
impl Debug for DeepLinkAction
Source§impl Default for DeepLinkAction
impl Default for DeepLinkAction
impl Eq for DeepLinkAction
Source§impl PartialEq for DeepLinkAction
impl PartialEq for DeepLinkAction
Source§impl Serialize for DeepLinkAction
impl Serialize for DeepLinkAction
impl StructuralPartialEq for DeepLinkAction
Auto Trait Implementations§
impl Forget for DeepLinkAction
impl Freeze for DeepLinkAction
impl Move for DeepLinkAction
impl RefUnwindSafe for DeepLinkAction
impl Send for DeepLinkAction
impl Sync for DeepLinkAction
impl Unpin for DeepLinkAction
impl UnsafeUnpin for DeepLinkAction
impl UnwindSafe for DeepLinkAction
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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