pub struct ChangeAppUserSettingsBuilder { /* private fields */ }Expand description
Builder for ChangeAppUserSettings.
Implementations§
Source§impl ChangeAppUserSettingsBuilder
impl ChangeAppUserSettingsBuilder
pub fn manifest_id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn link_capturing<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn link_capturing<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
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.
pub fn display_mode<VALUE: Into<DisplayMode>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn build(
&self,
) -> Result<ChangeAppUserSettings, ChangeAppUserSettingsBuilderError>
pub fn build( &self, ) -> Result<ChangeAppUserSettings, ChangeAppUserSettingsBuilderError>
Trait Implementations§
Source§impl Clone for ChangeAppUserSettingsBuilder
impl Clone for ChangeAppUserSettingsBuilder
Source§fn clone(&self) -> ChangeAppUserSettingsBuilder
fn clone(&self) -> ChangeAppUserSettingsBuilder
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ChangeAppUserSettingsBuilder
impl RefUnwindSafe for ChangeAppUserSettingsBuilder
impl Send for ChangeAppUserSettingsBuilder
impl Sync for ChangeAppUserSettingsBuilder
impl Unpin for ChangeAppUserSettingsBuilder
impl UnsafeUnpin for ChangeAppUserSettingsBuilder
impl UnwindSafe for ChangeAppUserSettingsBuilder
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