Struct ashpd::desktop::dynamic_launcher::PrepareInstallOptions
source · pub struct PrepareInstallOptions { /* private fields */ }
Expand description
Options to pass to DynamicLauncherProxy::prepare_install
Implementations§
source§impl PrepareInstallOptions
impl PrepareInstallOptions
sourcepub fn modal(self, modal: impl Into<Option<bool>>) -> Self
pub fn modal(self, modal: impl Into<Option<bool>>) -> Self
Sets whether the dialog should be a modal.
sourcepub fn launcher_type(self, launcher_type: LauncherType) -> Self
pub fn launcher_type(self, launcher_type: LauncherType) -> Self
Sets the launcher type.
sourcepub fn target<'a>(self, target: impl Into<Option<&'a str>>) -> Self
pub fn target<'a>(self, target: impl Into<Option<&'a str>>) -> Self
The URL for a LauncherType::WebApplication
otherwise it is not
needed.
sourcepub fn editable_name(self, editable_name: impl Into<Option<bool>>) -> Self
pub fn editable_name(self, editable_name: impl Into<Option<bool>>) -> Self
Sets whether the name should be editable.
sourcepub fn editable_icon(self, editable_icon: impl Into<Option<bool>>) -> Self
pub fn editable_icon(self, editable_icon: impl Into<Option<bool>>) -> Self
Sets whether the icon should be editable.
Trait Implementations§
source§impl Debug for PrepareInstallOptions
impl Debug for PrepareInstallOptions
source§impl Default for PrepareInstallOptions
impl Default for PrepareInstallOptions
source§fn default() -> PrepareInstallOptions
fn default() -> PrepareInstallOptions
Returns the “default value” for a type. Read more
source§impl Serialize for PrepareInstallOptions
impl Serialize for PrepareInstallOptions
Auto Trait Implementations§
impl Freeze for PrepareInstallOptions
impl RefUnwindSafe for PrepareInstallOptions
impl Send for PrepareInstallOptions
impl Sync for PrepareInstallOptions
impl Unpin for PrepareInstallOptions
impl UnwindSafe for PrepareInstallOptions
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> DynamicType for T
impl<T> DynamicType for T
source§fn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more
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> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
source§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.