pub struct ChangeAppUserSettingsParams {
pub manifest_id: String,
pub link_capturing: Option<bool>,
pub display_mode: Option<DisplayMode>,
}
Expand description
Changes user settings of the web app identified by its manifestId. If the app was not installed, this command returns an error. Unset parameters will be ignored; unrecognized values will cause an error.
Unlike the ones defined in the manifest files of the web apps, these settings are provided by the browser and controlled by the users, they impact the way the browser handling the web apps.
See the comment of each parameter. changeAppUserSettings
Fields§
§manifest_id: String
§link_capturing: Option<bool>
If user allows the links clicked on by the user in the app’s scope, or
extended scope if the manifest has scope extensions and the flags
DesktopPWAsLinkCapturingWithScopeExtensions
and
WebAppEnableScopeExtensions
are enabled.
Note, the API does not support resetting the linkCapturing to the initial value, uninstalling and installing the web app again will reset it.
TODO(crbug.com/339453269): Setting this value on ChromeOS is not supported yet.
display_mode: Option<DisplayMode>
Implementations§
Source§impl ChangeAppUserSettingsParams
impl ChangeAppUserSettingsParams
pub fn new(manifest_id: impl Into<String>) -> ChangeAppUserSettingsParams
Source§impl ChangeAppUserSettingsParams
impl ChangeAppUserSettingsParams
pub const IDENTIFIER: &'static str = "PWA.changeAppUserSettings"
Trait Implementations§
Source§impl Clone for ChangeAppUserSettingsParams
impl Clone for ChangeAppUserSettingsParams
Source§fn clone(&self) -> ChangeAppUserSettingsParams
fn clone(&self) -> ChangeAppUserSettingsParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ChangeAppUserSettingsParams
impl Debug for ChangeAppUserSettingsParams
Source§impl<'de> Deserialize<'de> for ChangeAppUserSettingsParams
impl<'de> Deserialize<'de> for ChangeAppUserSettingsParams
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ChangeAppUserSettingsParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ChangeAppUserSettingsParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl<T> From<T> for ChangeAppUserSettingsParams
impl<T> From<T> for ChangeAppUserSettingsParams
Source§fn from(url: T) -> ChangeAppUserSettingsParams
fn from(url: T) -> ChangeAppUserSettingsParams
Source§impl Method for ChangeAppUserSettingsParams
impl Method for ChangeAppUserSettingsParams
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 Serialize for ChangeAppUserSettingsParams
impl Serialize for ChangeAppUserSettingsParams
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 ChangeAppUserSettingsParams
Auto Trait Implementations§
impl Freeze for ChangeAppUserSettingsParams
impl RefUnwindSafe for ChangeAppUserSettingsParams
impl Send for ChangeAppUserSettingsParams
impl Sync for ChangeAppUserSettingsParams
impl Unpin for ChangeAppUserSettingsParams
impl UnwindSafe for ChangeAppUserSettingsParams
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