pub struct BuiltinRegistry {
pub version: String,
pub handle: String,
pub name: String,
pub description: String,
pub git: String,
pub branch: String,
pub registry_type: String,
pub set: bool,
}Expand description
A pre-defined registry bundled with Zoi.
These are defined in crates/core/src/builtin/registries/<handle>.yaml and
are embedded into the binary at compile time. They describe registries that
Zoi recognizes out of the box for convenience and UX, but they are still
third-party registries. The only official registry for Zoi is the one marked
with set: true (Zoidberg), all the others should be treated with care.
Fields§
§version: StringThe specification version of the registry definition.
handle: StringThe unique handle/short identifier of the registry.
name: StringThe human-readable display name of the registry.
description: StringA short description of the registry’s purpose.
git: StringThe Git URL of the registry repository.
branch: StringThe default branch to fetch from the Git repository.
registry_type: StringThe type of the registry (e.g. “official” or “third-party”). Just like
the type field of a repo in a registry’s repo.yaml.
set: boolWhether this registry is the single set (default) registry for Zoi.
Trait Implementations§
Source§impl Clone for BuiltinRegistry
impl Clone for BuiltinRegistry
Source§fn clone(&self) -> BuiltinRegistry
fn clone(&self) -> BuiltinRegistry
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 BuiltinRegistry
impl Debug for BuiltinRegistry
Source§impl<'de> Deserialize<'de> for BuiltinRegistry
impl<'de> Deserialize<'de> for BuiltinRegistry
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BuiltinRegistry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BuiltinRegistry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for BuiltinRegistry
impl Serialize for BuiltinRegistry
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for BuiltinRegistry
impl RefUnwindSafe for BuiltinRegistry
impl Send for BuiltinRegistry
impl Sync for BuiltinRegistry
impl Unpin for BuiltinRegistry
impl UnsafeUnpin for BuiltinRegistry
impl UnwindSafe for BuiltinRegistry
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more