Struct cosmic_space::kind::Specific

source ·
pub struct Specific {
    pub provider: Domain,
    pub vendor: Domain,
    pub product: SkewerCase,
    pub variant: SkewerCase,
    pub version: Version,
}
Expand description

A Specific is used to extend the Kind system in The Cosmic Initiative to a very exact level. when a Kind has a specific it is not only referencing something general like a Database, but the vendor, product and version of that database among other things. The Specific def looks like this provider.url:vendor.url:product:variant:version

  • provider - this is the domain name of the person or entity that provided the driver that this specific defines
  • vendor - the vendor that provides the product which may have had nothing to do with creating the driver
  • product - the product
  • variant - many products have variation and here it is where it is specificied
  • version - this is a SemVer describing the exact version of the Specific

Example:

mechtronhub.com:postgres.org:postgres:gis:8.0.0 And the above would be embedde into the appropriate Base Kind and Sub Kind: <Database<Rel<mechtronhub.com:postgres.org:postgres:gis:8.0.0>>>

Fields

provider: Domainvendor: Domainproduct: SkewerCasevariant: SkewerCaseversion: Version

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
The associated error which can be returned from parsing.
Parses a string s to return a value of this type. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Given the context attached to a nom error, and given the original input to the nom parser, extract more the useful context information. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Given the original input, as well as the context reported by nom, recreate a context in the original string where the error occurred. Read more
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.