pub struct SemanticSignature {
pub name: String,
pub owner: Option<String>,
pub visibility: Option<Visibility>,
pub async_: bool,
pub generic_parameters: Vec<String>,
pub parameters: Vec<SemanticParameter>,
pub returns: Option<String>,
pub constraints: Vec<String>,
}Expand description
The structured machine form of a signature — the semantic layer over the exact source text. Benchmark matching uses this, never string comparisons of source signatures alone.
Fields§
§name: String§owner: Option<String>§visibility: Option<Visibility>§async_: bool§generic_parameters: Vec<String>§parameters: Vec<SemanticParameter>§returns: Option<String>§constraints: Vec<String>where / trait-bound constraints (T: Send + Sync).
Trait Implementations§
Source§impl Clone for SemanticSignature
impl Clone for SemanticSignature
Source§impl Debug for SemanticSignature
impl Debug for SemanticSignature
Source§impl Default for SemanticSignature
impl Default for SemanticSignature
Source§impl<'de> Deserialize<'de> for SemanticSignature
impl<'de> Deserialize<'de> for SemanticSignature
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 SemanticSignature
impl JsonSchema for SemanticSignature
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 SemanticSignature
impl PartialEq for SemanticSignature
Source§impl Serialize for SemanticSignature
impl Serialize for SemanticSignature
impl StructuralPartialEq for SemanticSignature
Auto Trait Implementations§
impl Freeze for SemanticSignature
impl RefUnwindSafe for SemanticSignature
impl Send for SemanticSignature
impl Sync for SemanticSignature
impl Unpin for SemanticSignature
impl UnsafeUnpin for SemanticSignature
impl UnwindSafe for SemanticSignature
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