pub struct Content {
pub kind: String,
pub sha: String,
pub name: String,
pub path: String,
pub content: Value,
pub latest_commit: Option<Commit>,
}Expand description
A path in a repository at some ref: a file, a directory, a symlink or a submodule.
content keeps GitFox’s per-type body as JSON — a directory’s entries,
a file’s base64 data — and the accessors below read it. Its shape depends
on kind, which is what a single typed field could not express.
Fields§
§kind: Stringfile, dir, symlink or submodule.
sha: String§name: String§path: String§content: Value§latest_commit: Option<Commit>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Content
impl<'de> Deserialize<'de> for Content
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
Auto Trait Implementations§
impl Forget for Content
impl Freeze for Content
impl RefUnwindSafe for Content
impl Send for Content
impl Sync for Content
impl Unpin for Content
impl UnsafeUnpin for Content
impl UnwindSafe for Content
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