pub struct BeginDownloadResponse {
pub namespace_id: NamespaceId,
pub absolute_path: AbsolutePath,
pub revision_no: RevisionNo,
pub content_ref: ContentRef,
pub access: ObjectTransferAccess,
}Expand description
A short-lived capability to read one file’s content object, plus everything the reader needs to check what arrives.
The raw object key is deliberately not here, exactly as it is not in a
direct_put grant: a client learns a URL that expires, not an address it
can revisit.
The grant names one immutable content object, so it does not go stale when the path moves on. A commit that replaces the file writes a new object and leaves this one alone; what the capability reads is what the requested revision held when the grant was issued, and the reference says which bytes those are.
Fields§
§namespace_id: NamespaceIdNamespace that was read.
absolute_path: AbsolutePathAbsolute path as rendered from stored display names.
revision_no: RevisionNoRevision the capability reads, resolved from the request.
content_ref: ContentRefIdentity, byte length, and checksum evidence for the object the
capability reads. A reader checks the bytes it receives against
size_bytes, and against whole_file_sha256 when the reference
carries one — a direct-multipart object never will, because nobody
ever hashed it with SHA-256.
access: ObjectTransferAccessShort-lived read capability the client uses without learning the raw object key.
Trait Implementations§
Source§impl Clone for BeginDownloadResponse
impl Clone for BeginDownloadResponse
Source§fn clone(&self) -> BeginDownloadResponse
fn clone(&self) -> BeginDownloadResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more