logo
pub enum Entity {
    Invalid,
    System(SystemEntity),
    Test(String),
    Client(String),
    Host(String),
    Component(StringString),
    Collection(String),
    Reference(String),
}
Expand description

The entity being referenced across systems or services.

Variants

Invalid

A SystemEntity with the name “invalid”. Used only for situations where a default is necessary.

System(SystemEntity)

The SystemEntity is used when communicating to or from the internals of another component. Used mostly by library developers.

Test(String)

A SystemEntity with the name “test”. Used as the originating entity for tests.

Client(String)

A client entity used for requests.

Host(String)

A Host entity used for entities that serve responses to requests.

Component(StringString)

A component or anything that can be invoked like a component.

Collection(String)

A collection of components.

Reference(String)

A reference to an instance of an entity.

Implementations

Namespace for components local to a collection.

Constructor for Entity::Component.

Constructor for Entity::Component on the local namespace, used when the namespace is irrelevant. Caution: this is not portable.

👎 Deprecated:

please use local() instead

Constructor for Entity::Component without a namespace, used when the namespace is irrelevant. Caution: this is not portable.

Constructor for Entity::System.

Constructor for an Entity::Test.

Constructor for an Entity::Collection.

Constructor for Entity::Host.

Constructor for Entity::Client.

Constructor for Entity::Client.

The URL of the entity.

The name of the entity.

The namespace for the entity.

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

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Formats the value using the given formatter. Read more

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

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

Returns the argument unchanged.

Calls U::from(self).

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

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

Converts the given value to a String. 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.