pub struct BeginDownloadRequest {
pub path: AbsolutePath,
pub revision_no: Option<RevisionNo>,
}Expand description
What a client names when it asks to read a file directly.
A path and, optionally, the revision it wants — the same two things the proxied content read takes, so a caller switching transports changes nothing about what it is asking for.
Fields§
§path: AbsolutePathAbsolute path of the file to read.
revision_no: Option<RevisionNo>Revision to read, or None for the path’s current revision.
Implementations§
Source§impl BeginDownloadRequest
impl BeginDownloadRequest
Sourcepub fn for_path(path: AbsolutePath) -> Self
pub fn for_path(path: AbsolutePath) -> Self
Asks for the path’s current revision.
Sourcepub fn for_revision(path: AbsolutePath, revision_no: RevisionNo) -> Self
pub fn for_revision(path: AbsolutePath, revision_no: RevisionNo) -> Self
Asks for one prior revision of the path.
Trait Implementations§
Source§impl Clone for BeginDownloadRequest
impl Clone for BeginDownloadRequest
Source§fn clone(&self) -> BeginDownloadRequest
fn clone(&self) -> BeginDownloadRequest
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 moreSource§impl Debug for BeginDownloadRequest
impl Debug for BeginDownloadRequest
Source§impl<'de> Deserialize<'de> for BeginDownloadRequest
impl<'de> Deserialize<'de> for BeginDownloadRequest
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
impl Eq for BeginDownloadRequest
Source§impl PartialEq for BeginDownloadRequest
impl PartialEq for BeginDownloadRequest
Source§impl Serialize for BeginDownloadRequest
impl Serialize for BeginDownloadRequest
impl StructuralPartialEq for BeginDownloadRequest
Auto Trait Implementations§
impl Freeze for BeginDownloadRequest
impl RefUnwindSafe for BeginDownloadRequest
impl Send for BeginDownloadRequest
impl Sync for BeginDownloadRequest
impl Unpin for BeginDownloadRequest
impl UnsafeUnpin for BeginDownloadRequest
impl UnwindSafe for BeginDownloadRequest
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