pub struct ResolvedTemplate {
pub name: String,
pub entry: TemplateEntry,
}Expand description
A name[:version] reference resolved against the catalog.
Fields§
§name: StringTemplate name (no version suffix).
entry: TemplateEntryThe resolved entry: the exact version, or — for a bare name — the newest published version, falling back to the draft when nothing is published.
Implementations§
Source§impl ResolvedTemplate
impl ResolvedTemplate
Sourcepub fn canonical_ref(&self) -> String
pub fn canonical_ref(&self) -> String
Canonical pinned reference: name:version@digest (name:@digest for
drafts). Substituted into CreateSandboxRequest.template before the
idempotent create key is computed, so a retried create after a Publish
diverges instead of silently replaying the old content.
Trait Implementations§
Source§impl Clone for ResolvedTemplate
impl Clone for ResolvedTemplate
Source§fn clone(&self) -> ResolvedTemplate
fn clone(&self) -> ResolvedTemplate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ResolvedTemplate
impl RefUnwindSafe for ResolvedTemplate
impl Send for ResolvedTemplate
impl Sync for ResolvedTemplate
impl Unpin for ResolvedTemplate
impl UnsafeUnpin for ResolvedTemplate
impl UnwindSafe for ResolvedTemplate
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