pub struct LaunchFilesInAppReturns {
pub target_ids: Vec<TargetId>,
}
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§
§target_ids: Vec<TargetId>
IDs of the tab targets created as the result.
Implementations§
Source§impl LaunchFilesInAppReturns
impl LaunchFilesInAppReturns
pub fn new(target_ids: Vec<TargetId>) -> LaunchFilesInAppReturns
Trait Implementations§
Source§impl Clone for LaunchFilesInAppReturns
impl Clone for LaunchFilesInAppReturns
Source§fn clone(&self) -> LaunchFilesInAppReturns
fn clone(&self) -> LaunchFilesInAppReturns
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for LaunchFilesInAppReturns
impl Debug for LaunchFilesInAppReturns
Source§impl<'de> Deserialize<'de> for LaunchFilesInAppReturns
impl<'de> Deserialize<'de> for LaunchFilesInAppReturns
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LaunchFilesInAppReturns, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LaunchFilesInAppReturns, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for LaunchFilesInAppReturns
impl PartialEq for LaunchFilesInAppReturns
Source§impl Serialize for LaunchFilesInAppReturns
impl Serialize for LaunchFilesInAppReturns
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 LaunchFilesInAppReturns
Auto Trait Implementations§
impl Freeze for LaunchFilesInAppReturns
impl RefUnwindSafe for LaunchFilesInAppReturns
impl Send for LaunchFilesInAppReturns
impl Sync for LaunchFilesInAppReturns
impl Unpin for LaunchFilesInAppReturns
impl UnwindSafe for LaunchFilesInAppReturns
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