pub struct LockOptions {
pub comment: Option<String>,
pub steal_lock: bool,
pub current_rev: Option<u64>,
}Expand description
Options for crate::RaSvnSession::lock.
Fields§
§comment: Option<String>Optional lock comment.
steal_lock: boolWhether to steal an existing lock.
current_rev: Option<u64>Optional revision the lock is expected to apply to.
Implementations§
Source§impl LockOptions
impl LockOptions
Sourcepub fn with_comment(self, comment: impl Into<String>) -> Self
pub fn with_comment(self, comment: impl Into<String>) -> Self
Sets a lock comment.
Sourcepub fn steal_lock(self) -> Self
pub fn steal_lock(self) -> Self
Enables stealing an existing lock.
Sourcepub fn with_current_rev(self, current_rev: u64) -> Self
pub fn with_current_rev(self, current_rev: u64) -> Self
Sets a current revision constraint for the lock request.
Trait Implementations§
Source§impl Clone for LockOptions
impl Clone for LockOptions
Source§fn clone(&self) -> LockOptions
fn clone(&self) -> LockOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LockOptions
impl Debug for LockOptions
Source§impl Default for LockOptions
impl Default for LockOptions
Source§fn default() -> LockOptions
fn default() -> LockOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LockOptions
impl<'de> Deserialize<'de> for LockOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LockOptions
impl PartialEq for LockOptions
Source§impl Serialize for LockOptions
impl Serialize for LockOptions
impl Eq for LockOptions
impl StructuralPartialEq for LockOptions
Auto Trait Implementations§
impl Freeze for LockOptions
impl RefUnwindSafe for LockOptions
impl Send for LockOptions
impl Sync for LockOptions
impl Unpin for LockOptions
impl UnsafeUnpin for LockOptions
impl UnwindSafe for LockOptions
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