pub struct AdapterTarget {
pub target: Target,
pub package: String,
pub version: String,
}Expand description
The per-target release input an adapter operates on: exactly one contract
Target slice enriched with the plan’s chosen version and the resolved
package name.
The Target is the adapter’s slice of the normalized contract; version
and package are resolved once by the plan/coordinator (the chosen SemVer
bump is a sealed plan input, ADR-0002 §3) and passed in, so the adapter never
re-derives them and never sees another target’s config.
Fields§
§target: TargetThe contract target this cut publishes (ecosystem, registry, adapter).
package: StringThe resolved package/crate/module name (contract package, or the name
inferred from the manifest by the plan when the contract left it null).
version: StringThe version this cut publishes — the plan’s chosen bump.
Implementations§
Source§impl AdapterTarget
impl AdapterTarget
Sourcepub fn canonical_ref(&self) -> String
pub fn canonical_ref(&self) -> String
The canonical registry/package@version reference for this target — the
receipt’s PublishReceipt::canonical_ref and a stable log key.
Trait Implementations§
Source§impl Clone for AdapterTarget
impl Clone for AdapterTarget
Source§fn clone(&self) -> AdapterTarget
fn clone(&self) -> AdapterTarget
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 AdapterTarget
impl Debug for AdapterTarget
impl Eq for AdapterTarget
Source§impl PartialEq for AdapterTarget
impl PartialEq for AdapterTarget
impl StructuralPartialEq for AdapterTarget
Auto Trait Implementations§
impl Freeze for AdapterTarget
impl RefUnwindSafe for AdapterTarget
impl Send for AdapterTarget
impl Sync for AdapterTarget
impl Unpin for AdapterTarget
impl UnsafeUnpin for AdapterTarget
impl UnwindSafe for AdapterTarget
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,
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.