pub struct AdapterSpec {
pub name: String,
pub crate_name: String,
pub manifest_markers: Vec<String>,
pub lockfile_markers: Vec<String>,
pub registry: Registry,
pub constraint_family: ConstraintFamily,
pub dependency_tables: IndexMap<String, String>,
pub target_predicate_shape: TargetPredicateShape,
pub workspace_shape: WorkspaceShape,
pub manifest_format: ManifestFormat,
pub lockfile_format: LockfileFormat,
pub description: String,
}Expand description
Typed declarative adapter spec. One value of this struct generates
a complete adapter scaffold. Authoring-side equivalent of the
(defadapter …) Lisp form (M5+).
Fields§
§name: StringAdapter name — cargo, npm, bundler, pip, gomod, ….
crate_name: StringCrate name on crates.io — convention gen-<name>.
manifest_markers: Vec<String>Marker files probed in declaration order; first hit wins.
lockfile_markers: Vec<String>Lockfile markers; first present is used, otherwise none.
registry: RegistryUpstream registry the adapter primarily talks to.
constraint_family: ConstraintFamilyConstraint-syntax family. See ConstraintFamily.
dependency_tables: IndexMap<String, String>Per-kind dependency table name → DependencyKind mapping. e.g.
dependencies → Direct, devDependencies → Dev, …
target_predicate_shape: TargetPredicateShapeTarget-predicate shape supported by this format.
workspace_shape: WorkspaceShapeWorkspace shape — how multi-package projects are declared.
manifest_format: ManifestFormatManifest format — drives the parser the forge generates.
lockfile_format: LockfileFormatLockfile format — drives the parser the forge generates.
description: StringHuman-readable one-line description used in the generated
Cargo.toml description field.
Trait Implementations§
Source§impl Clone for AdapterSpec
impl Clone for AdapterSpec
Source§fn clone(&self) -> AdapterSpec
fn clone(&self) -> AdapterSpec
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AdapterSpec
impl Debug for AdapterSpec
Source§impl<'de> Deserialize<'de> for AdapterSpec
impl<'de> Deserialize<'de> for AdapterSpec
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>,
impl Eq for AdapterSpec
Source§impl PartialEq for AdapterSpec
impl PartialEq for AdapterSpec
Source§fn eq(&self, other: &AdapterSpec) -> bool
fn eq(&self, other: &AdapterSpec) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for AdapterSpec
impl Serialize for AdapterSpec
impl StructuralPartialEq for AdapterSpec
Auto Trait Implementations§
impl Freeze for AdapterSpec
impl RefUnwindSafe for AdapterSpec
impl Send for AdapterSpec
impl Sync for AdapterSpec
impl Unpin for AdapterSpec
impl UnsafeUnpin for AdapterSpec
impl UnwindSafe for AdapterSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.