#[non_exhaustive]pub struct EntityV3APISpec {
pub implemented_by: Option<Vec<String>>,
pub interface: Option<EntityV3APISpecInterface>,
pub lifecycle: Option<String>,
pub tier: Option<String>,
pub type_: Option<String>,
/* private fields */
}
Expand description
The definition of Entity V3 API Spec object.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.implemented_by: Option<Vec<String>>
Services which implemented the API.
interface: Option<EntityV3APISpecInterface>
The API definition.
lifecycle: Option<String>
The lifecycle state of the component.
tier: Option<String>
The importance of the component.
type_: Option<String>
The type of API.
Implementations§
Source§impl EntityV3APISpec
impl EntityV3APISpec
pub fn new() -> EntityV3APISpec
pub fn implemented_by(self, value: Vec<String>) -> Self
pub fn interface(self, value: EntityV3APISpecInterface) -> Self
pub fn lifecycle(self, value: String) -> Self
pub fn tier(self, value: String) -> Self
pub fn type_(self, value: String) -> Self
Trait Implementations§
Source§impl Clone for EntityV3APISpec
impl Clone for EntityV3APISpec
Source§fn clone(&self) -> EntityV3APISpec
fn clone(&self) -> EntityV3APISpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EntityV3APISpec
impl Debug for EntityV3APISpec
Source§impl Default for EntityV3APISpec
impl Default for EntityV3APISpec
Source§impl<'de> Deserialize<'de> for EntityV3APISpec
impl<'de> Deserialize<'de> for EntityV3APISpec
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EntityV3APISpec
impl PartialEq for EntityV3APISpec
Source§impl Serialize for EntityV3APISpec
impl Serialize for EntityV3APISpec
impl StructuralPartialEq for EntityV3APISpec
Auto Trait Implementations§
impl Freeze for EntityV3APISpec
impl RefUnwindSafe for EntityV3APISpec
impl Send for EntityV3APISpec
impl Sync for EntityV3APISpec
impl Unpin for EntityV3APISpec
impl UnwindSafe for EntityV3APISpec
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
Mutably borrows from an owned value. Read more