#[non_exhaustive]pub struct ReadPathResponse {
pub entry: Option<FileEntry>,
pub location: FileLocation,
pub volume: String,
pub entries: Vec<FileEntry>,
pub entry_count: u32,
pub next_entry_page_token: String,
pub text: String,
pub binary: bool,
pub next_offset_bytes: u64,
pub deploy_id: String,
}Expand description
What Client::read_path returns.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.entry: Option<FileEntry>The path itself, symlinks followed; a symlink whose target does not exist is its own entry.
location: FileLocationWith service: where the path lies. Unspecified otherwise: the request says it.
volume: StringWith service: the volume the path lies on, when location is VOLUME. Else empty.
entries: Vec<FileEntry>A directory’s: directories first, then by name (bytewise).
entry_count: u32A directory’s in all.
next_entry_page_token: StringSet = more entries follow these: pass it as entry_page_token.
text: StringA text file’s contents from offset_bytes, ending on a whole character. Untrusted.
binary: boolTrue = the file is binary (a NUL byte in its first 8 KiB): no text. Download it with Client::create_transfer.
next_offset_bytes: u64Where the next read of the file starts. 0 = the read reached its end.
deploy_id: StringThe project’s files: the deploy whose files these are. Pass it as Client::deploy_project's base_deploy_id to be refused if they changed since you read them.
Trait Implementations§
Source§impl Clone for ReadPathResponse
impl Clone for ReadPathResponse
Source§impl Debug for ReadPathResponse
impl Debug for ReadPathResponse
Source§impl Default for ReadPathResponse
impl Default for ReadPathResponse
Source§impl<'de> Deserialize<'de> for ReadPathResponse
From the API’s JSON. A field this version does not know is refused, as the API
refuses one it does not have.
impl<'de> Deserialize<'de> for ReadPathResponse
From the API’s JSON. A field this version does not know is refused, as the API refuses one it does not have.
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Source§impl PartialEq for ReadPathResponse
impl PartialEq for ReadPathResponse
Source§impl Serialize for ReadPathResponse
As the API’s JSON: the proto’s field names, an enum as its value’s name, a 64-bit
integer as a string, a time as RFC 3339, bytes as base64.
impl Serialize for ReadPathResponse
As the API’s JSON: the proto’s field names, an enum as its value’s name, a 64-bit integer as a string, a time as RFC 3339, bytes as base64.