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
.