pub struct LaunchFilesInAppParams {
pub manifest_id: String,
pub files: Vec<String>,
}
Expand description
Opens one or more local files from an installed web app identified by its manifestId. The web app needs to have file handlers registered to process the files. The API returns one or more page Target.TargetIDs which can be used to attach to via Target.attachToTarget or similar APIs. If some files in the parameters cannot be handled by the web app, they will be ignored. If none of the files can be handled, this API returns an error. If no files are provided as the parameter, this API also returns an error.
According to the definition of the file handlers in the manifest file, one Target.TargetID may represent a page handling one or more files. The order of the returned Target.TargetIDs is not guaranteed.
TODO(crbug.com/339454034): Check the existences of the input files. launchFilesInApp
Fields§
§manifest_id: String
§files: Vec<String>
Implementations§
Source§impl LaunchFilesInAppParams
impl LaunchFilesInAppParams
pub fn builder() -> LaunchFilesInAppParamsBuilder
Source§impl LaunchFilesInAppParams
impl LaunchFilesInAppParams
pub const IDENTIFIER: &'static str = "PWA.launchFilesInApp"
Trait Implementations§
Source§impl Clone for LaunchFilesInAppParams
impl Clone for LaunchFilesInAppParams
Source§fn clone(&self) -> LaunchFilesInAppParams
fn clone(&self) -> LaunchFilesInAppParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Command for LaunchFilesInAppParams
impl Command for LaunchFilesInAppParams
Source§impl Debug for LaunchFilesInAppParams
impl Debug for LaunchFilesInAppParams
Source§impl<'de> Deserialize<'de> for LaunchFilesInAppParams
impl<'de> Deserialize<'de> for LaunchFilesInAppParams
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LaunchFilesInAppParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LaunchFilesInAppParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Method for LaunchFilesInAppParams
impl Method for LaunchFilesInAppParams
Source§fn identifier(&self) -> Cow<'static, str>
fn identifier(&self) -> Cow<'static, str>
DOM.removeNode
Source§fn domain_name(&self) -> Cow<'static, str>
fn domain_name(&self) -> Cow<'static, str>
DOM
Source§fn method_name(&self) -> Cow<'static, str>
fn method_name(&self) -> Cow<'static, str>
removeNode
Source§impl MethodType for LaunchFilesInAppParams
impl MethodType for LaunchFilesInAppParams
Source§impl PartialEq for LaunchFilesInAppParams
impl PartialEq for LaunchFilesInAppParams
Source§impl Serialize for LaunchFilesInAppParams
impl Serialize for LaunchFilesInAppParams
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,
impl StructuralPartialEq for LaunchFilesInAppParams
Auto Trait Implementations§
impl Freeze for LaunchFilesInAppParams
impl RefUnwindSafe for LaunchFilesInAppParams
impl Send for LaunchFilesInAppParams
impl Sync for LaunchFilesInAppParams
impl Unpin for LaunchFilesInAppParams
impl UnwindSafe for LaunchFilesInAppParams
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
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>
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>
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