Struct gtk4::builders::MountOperationBuilder
source · pub struct MountOperationBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct MountOperation
objects.
Implementations§
source§impl MountOperationBuilder
impl MountOperationBuilder
sourcepub fn display(self, display: &impl IsA<Display>) -> Self
pub fn display(self, display: &impl IsA<Display>) -> Self
The display where dialogs will be shown.
sourcepub fn anonymous(self, anonymous: bool) -> Self
pub fn anonymous(self, anonymous: bool) -> Self
Whether to use an anonymous user when authenticating.
sourcepub fn choice(self, choice: i32) -> Self
pub fn choice(self, choice: i32) -> Self
The index of the user’s choice when a question is asked during the mount operation. See the #GMountOperation::ask-question signal.
sourcepub fn domain(self, domain: impl Into<GString>) -> Self
pub fn domain(self, domain: impl Into<GString>) -> Self
The domain to use for the mount operation.
Whether the device to be unlocked is a TCRYPT hidden volume. See the VeraCrypt documentation.
sourcepub fn is_tcrypt_system_volume(self, is_tcrypt_system_volume: bool) -> Self
pub fn is_tcrypt_system_volume(self, is_tcrypt_system_volume: bool) -> Self
Whether the device to be unlocked is a TCRYPT system volume. In this context, a system volume is a volume with a bootloader and operating system installed. This is only supported for Windows operating systems. For further documentation, see the VeraCrypt documentation.
sourcepub fn password(self, password: impl Into<GString>) -> Self
pub fn password(self, password: impl Into<GString>) -> Self
The password that is used for authentication when carrying out the mount operation.
sourcepub fn password_save(self, password_save: PasswordSave) -> Self
pub fn password_save(self, password_save: PasswordSave) -> Self
Determines if and how the password information should be saved.
sourcepub fn pim(self, pim: u32) -> Self
pub fn pim(self, pim: u32) -> Self
The VeraCrypt PIM value, when unlocking a VeraCrypt volume. See the VeraCrypt documentation.
sourcepub fn username(self, username: impl Into<GString>) -> Self
pub fn username(self, username: impl Into<GString>) -> Self
The user name that is used for authentication when carrying out the mount operation.
sourcepub fn build(self) -> MountOperation
pub fn build(self) -> MountOperation
Build the MountOperation
.