pub struct SimilarMatch {
pub unit: String,
pub requirement: String,
pub text: String,
pub score: f64,
pub level: SimilarLevel,
pub shared: Vec<String>,
pub at: Option<Place>,
}Expand description
A requirement close to the description.
Fields§
§unit: StringThe unit (003-reports).
requirement: StringThe requirement’s identifier (FR-004).
text: StringThe requirement as written.
score: f64Cosine in [0, 1], rounded to two places.
level: SimilarLevelclose or very_close.
The terms it shares with the description, the weightiest first.
at: Option<Place>Where it is written.
Trait Implementations§
Source§impl Clone for SimilarMatch
impl Clone for SimilarMatch
Source§impl Debug for SimilarMatch
impl Debug for SimilarMatch
Source§impl<'de> Deserialize<'de> for SimilarMatch
impl<'de> Deserialize<'de> for SimilarMatch
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
Source§impl JsonSchema for SimilarMatch
impl JsonSchema for SimilarMatch
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 SimilarMatch
impl PartialEq for SimilarMatch
Source§impl Serialize for SimilarMatch
impl Serialize for SimilarMatch
impl StructuralPartialEq for SimilarMatch
Auto Trait Implementations§
impl Freeze for SimilarMatch
impl RefUnwindSafe for SimilarMatch
impl Send for SimilarMatch
impl Sync for SimilarMatch
impl Unpin for SimilarMatch
impl UnsafeUnpin for SimilarMatch
impl UnwindSafe for SimilarMatch
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