pub struct ServerSource {Show 14 fields
pub kind: ServerSourceKind,
pub url: Option<String>,
pub folder: Option<String>,
pub path: Option<String>,
pub git_ref: Option<String>,
pub commit: Option<String>,
pub file: String,
pub converter: String,
pub entry: Option<String>,
pub checkout: Option<bool>,
pub machine: Option<String>,
pub catalog: Option<String>,
pub version: Option<String>,
pub extra: Table,
}Expand description
[meta.source]: the repository or folder a server was drafted from,
so an update check can read it again (#5).
Fields§
§kind: ServerSourceKindgit, local or registry.
url: Option<String>Git URL, userinfo removed (git); the registry’s base URL (registry).
folder: Option<String>The folder, ${home} for the home folder (local).
path: Option<String>Folder inside the repository, /-separated.
git_ref: Option<String>Branch or tag followed (git); the version pinned (registry).
commit: Option<String>The resolved commit (git).
file: StringThe file the definition came from, relative to the folder.
converter: Stringregistry, bundle, client:<id>, npm, python or docker.
entry: Option<String>Which definition of the file (packages[0], an entry name).
checkout: Option<bool>The server runs from the machine-local clone
<SURJECTION_HOME>/servers/<id>.
machine: Option<String>The machine a local folder belongs to (its machine id): the server runs only there (local sources).
catalog: Option<String>The catalog entry it was installed from, <catalog>/<entry id>
(#26).
version: Option<String>The registry entry’s version (registry).
extra: TableImplementations§
Source§impl ServerSource
impl ServerSource
pub fn uses_checkout(&self) -> bool
Trait Implementations§
Source§impl Clone for ServerSource
impl Clone for ServerSource
Source§impl Debug for ServerSource
impl Debug for ServerSource
Source§impl<'de> Deserialize<'de> for ServerSource
impl<'de> Deserialize<'de> for ServerSource
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>,
Source§impl JsonSchema for ServerSource
impl JsonSchema for ServerSource
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more