pub struct PublicRegistry {
pub base: String,
pub store: Option<String>,
}Expand description
A registry resolved to its public read surface.
Fields§
§base: Stringhttps://<host>/v1/public/<tenant> — the base every public read
hangs off.
store: Option<String>The named store under the tenant, if the registry named one. Passed
as ?store=<store>; None reads the tenant’s default (flat) store.
Implementations§
Source§impl PublicRegistry
impl PublicRegistry
Sourcepub fn versions_url(&self, name: &str) -> String
pub fn versions_url(&self, name: &str) -> String
…/v1/public/<tenant>/<name>/versions[?store=…] — the release list.
Sourcepub fn archive_url(&self, name: &str, version: &str) -> String
pub fn archive_url(&self, name: &str, version: &str) -> String
…/v1/public/<tenant>/<name>/<version>/archive[?store=…] — the
package archive for a resolved version.
Sourcepub fn contract_url(&self, name: &str, version: &str) -> String
pub fn contract_url(&self, name: &str, version: &str) -> String
…/v1/public/<tenant>/<name>/<version>/contract[?store=…] — the
signed capability contract, when the surface serves one. (The public
surface may not; callers treat a 404 as “unsigned”.)
Trait Implementations§
Source§impl Clone for PublicRegistry
impl Clone for PublicRegistry
Source§fn clone(&self) -> PublicRegistry
fn clone(&self) -> PublicRegistry
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 moreSource§impl Debug for PublicRegistry
impl Debug for PublicRegistry
impl Eq for PublicRegistry
Source§impl PartialEq for PublicRegistry
impl PartialEq for PublicRegistry
impl StructuralPartialEq for PublicRegistry
Auto Trait Implementations§
impl Freeze for PublicRegistry
impl RefUnwindSafe for PublicRegistry
impl Send for PublicRegistry
impl Sync for PublicRegistry
impl Unpin for PublicRegistry
impl UnsafeUnpin for PublicRegistry
impl UnwindSafe for PublicRegistry
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