pub struct NotesFile {
pub path: String,
pub text: String,
pub commits: Vec<String>,
}Expand description
A notes file lifted out of the diff and presented as a page panel.
Fields§
§path: StringThe path the file was committed under (e.g. PR-DESCRIPTION.md);
comments on the rendered panel anchor to this path, New side,
1-based source lines.
text: StringThe file’s full markdown text, as of the last notes commit.
commits: Vec<String>The notes commits (full SHAs, oldest first) hidden from the commit list — recorded so the provenance stays in the document.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NotesFile
impl<'de> Deserialize<'de> for NotesFile
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 Freeze for NotesFile
impl RefUnwindSafe for NotesFile
impl Send for NotesFile
impl Sync for NotesFile
impl Unpin for NotesFile
impl UnsafeUnpin for NotesFile
impl UnwindSafe for NotesFile
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