pub struct ModuleSpec {
pub id: &'static str,
pub repo: &'static str,
pub tag_template: &'static str,
pub asset_template: &'static str,
pub gateway_module_id: &'static str,
}Expand description
One third-party module’s release-feed coordinates: where its releases
live (repo) and how a version string becomes a release tag / asset
filename (tag_template / asset_template, both substituting the
literal token {version}).
Fields§
§id: &'static strShort, filesystem- and URL-safe identifier (git) — also the cache
subdirectory name under <cache_root>/modules/.
repo: &'static strowner/repo on GitHub.
tag_template: &'static strThe release tag shape, e.g. v{version}.
asset_template: &'static strThe release asset filename shape, e.g. Git-{version}-signed.modl.
gateway_module_id: &'static strThe value the GATEWAY’s own acceptance variables
(ACCEPT_MODULE_CERTS/ACCEPT_MODULE_LICENSES) must name — read
from the artifact’s own module.xml, NOT derivable from
Self::id (Phase 16, D-03). The two ids are different SHAPES:
id is a short cache-dir/mount-basename slug ([a-z0-9-]{1,32},
validate_module_id-constrained), while gateway_module_id may be
reverse-DNS (com.axone_io.ignition.git) or a bare slug
(project-scan-endpoint) depending on the module — never
interchanged.
Implementations§
Source§impl ModuleSpec
impl ModuleSpec
Sourcepub fn tag(&self, version: &str) -> String
pub fn tag(&self, version: &str) -> String
The release tag for version (substitutes {version} into
Self::tag_template).
Sourcepub fn asset_name(&self, version: &str) -> String
pub fn asset_name(&self, version: &str) -> String
The expected release asset filename for version (substitutes
{version} into Self::asset_template).
Trait Implementations§
Source§impl Clone for ModuleSpec
impl Clone for ModuleSpec
impl Copy for ModuleSpec
Source§impl Debug for ModuleSpec
impl Debug for ModuleSpec
impl Eq for ModuleSpec
Source§impl PartialEq for ModuleSpec
impl PartialEq for ModuleSpec
impl StructuralPartialEq for ModuleSpec
Auto Trait Implementations§
impl Freeze for ModuleSpec
impl RefUnwindSafe for ModuleSpec
impl Send for ModuleSpec
impl Sync for ModuleSpec
impl Unpin for ModuleSpec
impl UnsafeUnpin for ModuleSpec
impl UnwindSafe for ModuleSpec
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.