pub struct DeepLink {
pub url: String,
pub cold_start: bool,
pub source: DeepLinkSource,
}Expand description
Inbound URL delivered by the host shell.
Fields§
§url: String§cold_start: bool§source: DeepLinkSourceImplementations§
Source§impl DeepLink
impl DeepLink
Sourcepub fn new(url: impl Into<String>) -> Self
pub fn new(url: impl Into<String>) -> Self
Creates an inbound deep link with an unknown source.
url is stored exactly as delivered by the host. Use source and
cold_start to add shell context when the link source and startup state
are known.
Sourcepub fn cold_start(self, cold_start: bool) -> Self
pub fn cold_start(self, cold_start: bool) -> Self
Records whether this link launched the app from a stopped state.
Use true when the link was delivered during app startup. Reducers can
use this to decide whether to replace the initial route or treat the link
as an in-session navigation request.
Sourcepub fn source(self, source: DeepLinkSource) -> Self
pub fn source(self, source: DeepLinkSource) -> Self
Records how the host classified the inbound link.
The source helps reducers and analytics distinguish custom schemes, universal links, app links, web URLs, notification taps, and external handoff paths without reparsing platform-specific launch data.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DeepLink
impl<'de> Deserialize<'de> for DeepLink
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
impl Eq for DeepLink
impl StructuralPartialEq for DeepLink
Auto Trait Implementations§
impl Freeze for DeepLink
impl RefUnwindSafe for DeepLink
impl Send for DeepLink
impl Sync for DeepLink
impl Unpin for DeepLink
impl UnsafeUnpin for DeepLink
impl UnwindSafe for DeepLink
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.