pub struct CommitOptions {
pub log_message: String,
pub lock_tokens: Vec<CommitLockToken>,
pub keep_locks: bool,
pub rev_props: PropertyList,
}Expand description
Options for crate::RaSvnSession::commit.
rev_props is for additional revision properties; svn:log is always
derived from log_message.
Fields§
§log_message: StringCommit log message (used to set svn:log).
lock_tokens: Vec<CommitLockToken>Lock tokens to present during commit.
keep_locks: boolWhether to keep locks after a successful commit.
rev_props: PropertyListAdditional revision properties to set during commit.
Implementations§
Source§impl CommitOptions
impl CommitOptions
Sourcepub fn new(log_message: impl Into<String>) -> Self
pub fn new(log_message: impl Into<String>) -> Self
Creates commit options with a required log message.
Sourcepub fn with_lock_tokens(self, lock_tokens: Vec<CommitLockToken>) -> Self
pub fn with_lock_tokens(self, lock_tokens: Vec<CommitLockToken>) -> Self
Sets lock tokens to be included in the commit.
Sourcepub fn keep_locks(self) -> Self
pub fn keep_locks(self) -> Self
Requests that locks be kept after the commit.
Sourcepub fn with_rev_props(self, rev_props: PropertyList) -> Self
pub fn with_rev_props(self, rev_props: PropertyList) -> Self
Sets additional revision properties.
Trait Implementations§
Source§impl Clone for CommitOptions
impl Clone for CommitOptions
Source§fn clone(&self) -> CommitOptions
fn clone(&self) -> CommitOptions
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 CommitOptions
impl Debug for CommitOptions
Source§impl<'de> Deserialize<'de> for CommitOptions
impl<'de> Deserialize<'de> for CommitOptions
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 CommitOptions
impl PartialEq for CommitOptions
Source§impl Serialize for CommitOptions
impl Serialize for CommitOptions
impl Eq for CommitOptions
impl StructuralPartialEq for CommitOptions
Auto Trait Implementations§
impl Freeze for CommitOptions
impl RefUnwindSafe for CommitOptions
impl Send for CommitOptions
impl Sync for CommitOptions
impl Unpin for CommitOptions
impl UnwindSafe for CommitOptions
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