pub struct Contribution {
pub kind: ContributionKind,
pub name: String,
pub line: String,
pub reaches: Vec<String>,
}Expand description
One contribution and what it can reach, in words.
Fields§
§kind: ContributionKindIts kind.
name: StringIts qualified name: threatspec.check, /threatspec:model.
line: StringWhat it does and reaches: gate before tick: runs ./check.sh — no network.
reaches: Vec<String>What it reaches that a narrower one would not: network,
host:hooks.example.com, event:task.stopped.
Implementations§
Source§impl Contribution
impl Contribution
Sourcepub const fn kind_words(&self) -> &'static str
pub const fn kind_words(&self) -> &'static str
Its kind in a word or two: gate, MCP server.
Trait Implementations§
Source§impl Clone for Contribution
impl Clone for Contribution
Source§impl Debug for Contribution
impl Debug for Contribution
Source§impl<'de> Deserialize<'de> for Contribution
impl<'de> Deserialize<'de> for Contribution
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 Contribution
Source§impl JsonSchema for Contribution
impl JsonSchema for Contribution
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 Contribution
impl PartialEq for Contribution
Source§impl Serialize for Contribution
impl Serialize for Contribution
impl StructuralPartialEq for Contribution
Auto Trait Implementations§
impl Forget for Contribution
impl Freeze for Contribution
impl Move for Contribution
impl RefUnwindSafe for Contribution
impl Send for Contribution
impl Sync for Contribution
impl Unpin for Contribution
impl UnsafeUnpin for Contribution
impl UnwindSafe for Contribution
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