pub enum CommentAnchor {
Passage {
path: String,
start_line: usize,
end_line: usize,
quote: String,
quote_sha256: String,
section: String,
},
DiffLine {
path: String,
side: String,
line: usize,
quote: String,
},
TestLine {
req: String,
path: String,
line: usize,
quote: String,
},
Finding {
source: String,
id: String,
text: String,
},
}Expand description
What an anchored comment points at.
Variants§
Passage
A passage of a feature document.
Fields
DiffLine
A line of the spec’s changes since the last commit.
Fields
TestLine
A line of a shown visible test.
Fields
Finding
A finding the review shows.
Implementations§
Trait Implementations§
Source§impl Clone for CommentAnchor
impl Clone for CommentAnchor
Source§impl Debug for CommentAnchor
impl Debug for CommentAnchor
Source§impl<'de> Deserialize<'de> for CommentAnchor
impl<'de> Deserialize<'de> for CommentAnchor
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 CommentAnchor
Source§impl JsonSchema for CommentAnchor
impl JsonSchema for CommentAnchor
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 CommentAnchor
impl PartialEq for CommentAnchor
Source§impl Serialize for CommentAnchor
impl Serialize for CommentAnchor
impl StructuralPartialEq for CommentAnchor
Auto Trait Implementations§
impl Freeze for CommentAnchor
impl RefUnwindSafe for CommentAnchor
impl Send for CommentAnchor
impl Sync for CommentAnchor
impl Unpin for CommentAnchor
impl UnsafeUnpin for CommentAnchor
impl UnwindSafe for CommentAnchor
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