Struct libpanel::builders::SaveDelegateBuilder
source · pub struct SaveDelegateBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct SaveDelegate
objects.
Implementations§
source§impl SaveDelegateBuilder
impl SaveDelegateBuilder
sourcepub fn is_draft(self, is_draft: bool) -> Self
pub fn is_draft(self, is_draft: bool) -> Self
The “is-draft” property indicates that the document represented by the delegate is a draft and might be lost of not saved.
sourcepub fn progress(self, progress: f64) -> Self
pub fn progress(self, progress: f64) -> Self
The “progress” property contains progress between 0.0 and 1.0 and should be updated by the delegate implementation as saving progresses.
sourcepub fn subtitle(self, subtitle: impl Into<GString>) -> Self
pub fn subtitle(self, subtitle: impl Into<GString>) -> Self
The “subtitle” property contains additional information that may not make sense to put in the title. This might include the directory that the file will be saved within.
sourcepub fn title(self, title: impl Into<GString>) -> Self
pub fn title(self, title: impl Into<GString>) -> Self
The “title” property contains the title of the document being saved.
Generally, this should be the base name of the document such as
file.txt
.
sourcepub fn build(self) -> SaveDelegate
pub fn build(self) -> SaveDelegate
Build the SaveDelegate
.
Auto Trait Implementations§
impl Freeze for SaveDelegateBuilder
impl RefUnwindSafe for SaveDelegateBuilder
impl !Send for SaveDelegateBuilder
impl !Sync for SaveDelegateBuilder
impl Unpin for SaveDelegateBuilder
impl UnwindSafe for SaveDelegateBuilder
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