pub struct SectionDiff {
pub path: String,
pub heading: String,
pub before: String,
pub after: String,
pub outside: bool,
}Expand description
One section a revision changed, before and after (each cut to 4000 characters).
Fields§
§path: StringThe document (project-relative).
heading: StringIts heading path (Spec › Requirements; empty before the first).
before: StringThe section’s text before the revision (empty: it was added).
after: StringAfter it (empty: it was removed).
outside: boolNo comment touched it.
Trait Implementations§
Source§impl Clone for SectionDiff
impl Clone for SectionDiff
Source§impl Debug for SectionDiff
impl Debug for SectionDiff
Source§impl<'de> Deserialize<'de> for SectionDiff
impl<'de> Deserialize<'de> for SectionDiff
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 Eq for SectionDiff
Source§impl JsonSchema for SectionDiff
impl JsonSchema for SectionDiff
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for SectionDiff
impl PartialEq for SectionDiff
Source§impl Serialize for SectionDiff
impl Serialize for SectionDiff
impl StructuralPartialEq for SectionDiff
Auto Trait Implementations§
impl Freeze for SectionDiff
impl RefUnwindSafe for SectionDiff
impl Send for SectionDiff
impl Sync for SectionDiff
impl Unpin for SectionDiff
impl UnsafeUnpin for SectionDiff
impl UnwindSafe for SectionDiff
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