pub struct UpdateOptions {
pub rev: Option<u64>,
pub target: String,
pub depth: Depth,
pub send_copyfrom_args: bool,
pub ignore_ancestry: bool,
}Expand description
Options for crate::RaSvnSession::update.
Fields§
§rev: Option<u64>Revision to update to; None usually means HEAD.
target: StringUpdate target path (repository-relative).
depth: DepthUpdate depth.
send_copyfrom_args: boolWhether to request copyfrom arguments from the server.
ignore_ancestry: boolWhether to ignore ancestry when applying the report.
Implementations§
Source§impl UpdateOptions
impl UpdateOptions
Sourcepub fn new(target: impl Into<String>, depth: Depth) -> Self
pub fn new(target: impl Into<String>, depth: Depth) -> Self
Creates update options for a target and depth.
Sourcepub fn without_copyfrom_args(self) -> Self
pub fn without_copyfrom_args(self) -> Self
Disables copyfrom arguments (for compatibility with older servers).
Sourcepub fn ignore_ancestry(self) -> Self
pub fn ignore_ancestry(self) -> Self
Ignores ancestry when applying the update.
Trait Implementations§
Source§impl Clone for UpdateOptions
impl Clone for UpdateOptions
Source§fn clone(&self) -> UpdateOptions
fn clone(&self) -> UpdateOptions
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 UpdateOptions
impl Debug for UpdateOptions
Source§impl<'de> Deserialize<'de> for UpdateOptions
impl<'de> Deserialize<'de> for UpdateOptions
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 UpdateOptions
impl PartialEq for UpdateOptions
Source§impl Serialize for UpdateOptions
impl Serialize for UpdateOptions
impl Eq for UpdateOptions
impl StructuralPartialEq for UpdateOptions
Auto Trait Implementations§
impl Freeze for UpdateOptions
impl RefUnwindSafe for UpdateOptions
impl Send for UpdateOptions
impl Sync for UpdateOptions
impl Unpin for UpdateOptions
impl UnsafeUnpin for UpdateOptions
impl UnwindSafe for UpdateOptions
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