pub struct Registry {
pub registry_type: Option<String>,
pub registry_hostname: String,
pub namespace: String,
}
Expand description
Defines how to fetch the wasm code from a registry
For now the definition is quite basic, but we can later expand on this and support different types of registries, that may have different interfaces.
Right now the idea is to use the OCI standard here, so the full URI of some package will be
registry_hostname/namespace/pkg-name:pkg-version
This then has to be translated into a proper URL based on the registry type to fetch the actual content.
Please note: The definition of the package-name and version is not part of the Registry
.
Fields§
§registry_type: Option<String>
Type of registry. If none given, the OCI standard is used.
registry_hostname: String
Base-URL of the registry
namespace: String
Namespace in the registry
This can be an organization or arbitrary namespace.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Registry
impl<'de> Deserialize<'de> for Registry
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Registry> for RegistryDto
impl From<Registry> for RegistryDto
Source§impl From<RegistryDto> for Registry
impl From<RegistryDto> for Registry
Source§fn from(value: RegistryDto) -> Self
fn from(value: RegistryDto) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Registry
impl RefUnwindSafe for Registry
impl Send for Registry
impl Sync for Registry
impl Unpin for Registry
impl UnwindSafe for Registry
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