pub struct FileJson {
pub content: Option<String>,
pub encoding: Option<String>,
pub path: Option<String>,
pub size: Option<i32>,
pub truncated: Option<bool>,
}Fields§
§content: Option<String>Content is the file’s bytes, empty when Truncated.
encoding: Option<String>Encoding is how Content is carried: "utf8" verbatim, or "base64".
path: Option<String>Path is the file’s repo-relative path.
size: Option<i32>Size is the file’s byte length in the repo.
truncated: Option<bool>Truncated marks a file past the read cap; no content is sent. A caller assembling a desired set must treat this as INCOMPLETE, never as empty.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FileJson
impl<'de> Deserialize<'de> for FileJson
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 StructuralPartialEq for FileJson
Auto Trait Implementations§
impl Freeze for FileJson
impl RefUnwindSafe for FileJson
impl Send for FileJson
impl Sync for FileJson
impl Unpin for FileJson
impl UnsafeUnpin for FileJson
impl UnwindSafe for FileJson
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