pub struct Metadata {
pub registry: String,
pub url: Option<String>,
pub auth: Option<AuthKind>,
pub provides: Vec<Capability>,
pub backup_enabled: bool,
}Expand description
Per-install record persisted to ~/.local/share/services/<name>/metadata.toml.
Exposure isn’t stored — it’s derived from url at read time
(absent = Loopback, .internal = Internal, .ts.net = Tailscale,
otherwise Public). One source of truth for “where does this
service live.”
Fields§
§registry: String§url: Option<String>§auth: Option<AuthKind>Auth kind: oidc if --auth was used, otherwise absent.
provides: Vec<Capability>Capabilities the service provides — snapshotted from
service.toml at install time so crate::list_installed can
answer “is there an installed reverse proxy / OIDC provider /
SMTP relay / metrics scraper?” without re-reading the registry.
backup_enabled: boolTrue if --backup was passed at ryra add time. Drives
whether ryra backup run picks this install up.
Default false so an existing install (written by a ryra
version that pre-dates the backup feature) reads back as
not-enabled rather than as malformed.