pub struct Extension {Show 13 fields
pub name: String,
pub source: ExtensionSource,
pub version: Option<String>,
pub description: Option<String>,
pub folder: String,
pub origin: Option<AddedFrom>,
pub digest: String,
pub files: Vec<HookFile>,
pub contributions: Vec<Contribution>,
pub trust: TrustState,
pub changes: Option<ExtensionChanges>,
pub trust_flag: String,
pub problems: Vec<String>,
}Expand description
One extension as speccoder extensions shows it.
Fields§
§name: StringIts name.
source: ExtensionSourceAgent Plugins or Spec Kit.
version: Option<String>Its version, as it says.
description: Option<String>What it says it is.
folder: StringIts folder, relative to the project.
origin: Option<AddedFrom>Where it was added from.
digest: Stringsha256:<hex> over every file.
files: Vec<HookFile>Every file and its digest.
contributions: Vec<Contribution>What it contributes.
trust: TrustStateWhether it may run here.
changes: Option<ExtensionChanges>For a changed extension: what changed.
trust_flag: StringThe flag that trusts it in CI: --trust-extension name=sha256:….
problems: Vec<String>Why it cannot be loaded; nothing of it is offered while any.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Extension
impl<'de> Deserialize<'de> for Extension
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 Extension
Source§impl JsonSchema for Extension
impl JsonSchema for Extension
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 moreimpl StructuralPartialEq for Extension
Auto Trait Implementations§
impl Forget for Extension
impl Freeze for Extension
impl Move for Extension
impl RefUnwindSafe for Extension
impl Send for Extension
impl Sync for Extension
impl Unpin for Extension
impl UnsafeUnpin for Extension
impl UnwindSafe for Extension
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