pub struct LaunchParams {
pub manifest_id: String,
pub url: Option<String>,
}
Expand description
Launches the installed web app, or an url in the same web app instead of the default start url if it is provided. Returns a page Target.TargetID which can be used to attach to via Target.attachToTarget or similar APIs. launch
Fields§
§manifest_id: String
§url: Option<String>
Implementations§
Source§impl LaunchParams
impl LaunchParams
pub fn new(manifest_id: impl Into<String>) -> LaunchParams
Source§impl LaunchParams
impl LaunchParams
pub fn builder() -> LaunchParamsBuilder
Source§impl LaunchParams
impl LaunchParams
pub const IDENTIFIER: &'static str = "PWA.launch"
Trait Implementations§
Source§impl Clone for LaunchParams
impl Clone for LaunchParams
Source§fn clone(&self) -> LaunchParams
fn clone(&self) -> LaunchParams
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Command for LaunchParams
impl Command for LaunchParams
Source§impl Debug for LaunchParams
impl Debug for LaunchParams
Source§impl<'de> Deserialize<'de> for LaunchParams
impl<'de> Deserialize<'de> for LaunchParams
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LaunchParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LaunchParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T> From<T> for LaunchParams
impl<T> From<T> for LaunchParams
Source§fn from(url: T) -> LaunchParams
fn from(url: T) -> LaunchParams
Converts to this type from the input type.
Source§impl Method for LaunchParams
impl Method for LaunchParams
Source§fn identifier(&self) -> Cow<'static, str>
fn identifier(&self) -> Cow<'static, str>
The whole string identifier for this method like:
DOM.removeNode
Source§fn domain_name(&self) -> Cow<'static, str>
fn domain_name(&self) -> Cow<'static, str>
The name of the domain this method belongs to:
DOM
Source§fn method_name(&self) -> Cow<'static, str>
fn method_name(&self) -> Cow<'static, str>
The standalone identifier of the method inside the domain:
removeNode
Source§impl MethodType for LaunchParams
impl MethodType for LaunchParams
Source§impl PartialEq for LaunchParams
impl PartialEq for LaunchParams
Source§impl Serialize for LaunchParams
impl Serialize for LaunchParams
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for LaunchParams
Auto Trait Implementations§
impl Freeze for LaunchParams
impl RefUnwindSafe for LaunchParams
impl Send for LaunchParams
impl Sync for LaunchParams
impl Unpin for LaunchParams
impl UnwindSafe for LaunchParams
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> 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