pub struct GitLockRequirements {
pub resource_types: Vec<ResourceType>,
pub check_file_conflicts: bool,
pub check_build_conflicts: bool,
pub operation_type: GitOperationType,
pub description: &'static str,
}Expand description
Lock requirements for a git operation
Fields§
§resource_types: Vec<ResourceType>Primary resource types needed
check_file_conflicts: boolWhether to check for file write conflicts
check_build_conflicts: boolWhether to check for build conflicts
operation_type: GitOperationTypeGit operation type for messaging
description: &'static strHuman-readable description
Implementations§
Source§impl GitLockRequirements
impl GitLockRequirements
Sourcepub fn is_read_only(&self) -> bool
pub fn is_read_only(&self) -> bool
Returns true if no locks are needed (read-only operation)
Trait Implementations§
Source§impl Clone for GitLockRequirements
impl Clone for GitLockRequirements
Source§fn clone(&self) -> GitLockRequirements
fn clone(&self) -> GitLockRequirements
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GitLockRequirements
impl RefUnwindSafe for GitLockRequirements
impl Send for GitLockRequirements
impl Sync for GitLockRequirements
impl Unpin for GitLockRequirements
impl UnsafeUnpin for GitLockRequirements
impl UnwindSafe for GitLockRequirements
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