pub struct GetFileOptions {
pub rev: u64,
pub want_props: bool,
pub want_iprops: bool,
pub max_bytes: u64,
}Expand description
Options for crate::RaSvnSession::get_file_with_options.
Fields§
§rev: u64Revision to fetch.
want_props: boolWhether to request file properties.
want_iprops: boolWhether to request inherited properties.
Note: the standard Subversion client uses a separate get-iprops call
instead of setting want-iprops in get-file, to work around
compatibility issues with some svnserve versions.
max_bytes: u64Maximum number of bytes to stream.
Implementations§
Source§impl GetFileOptions
impl GetFileOptions
Sourcepub fn with_props(self) -> Self
pub fn with_props(self) -> Self
Requests file properties in the response.
Sourcepub fn with_iprops(self) -> Self
pub fn with_iprops(self) -> Self
Requests inherited properties (if supported by the server).
Trait Implementations§
Source§impl Clone for GetFileOptions
impl Clone for GetFileOptions
Source§fn clone(&self) -> GetFileOptions
fn clone(&self) -> GetFileOptions
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 GetFileOptions
impl Debug for GetFileOptions
Source§impl<'de> Deserialize<'de> for GetFileOptions
impl<'de> Deserialize<'de> for GetFileOptions
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 GetFileOptions
impl PartialEq for GetFileOptions
Source§impl Serialize for GetFileOptions
impl Serialize for GetFileOptions
impl Eq for GetFileOptions
impl StructuralPartialEq for GetFileOptions
Auto Trait Implementations§
impl Freeze for GetFileOptions
impl RefUnwindSafe for GetFileOptions
impl Send for GetFileOptions
impl Sync for GetFileOptions
impl Unpin for GetFileOptions
impl UnwindSafe for GetFileOptions
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