pub struct ServiceMetadata {
pub name: String,
pub version: String,
pub description: Option<String>,
pub dependencies: Vec<String>,
pub provides: Vec<String>,
pub status: ServiceStatus,
pub priority: u32,
}Expand description
服务元数据
Fields§
§name: String服务名称
version: String服务版本
description: Option<String>服务描述
dependencies: Vec<String>依赖的服务列表
provides: Vec<String>提供的功能
status: ServiceStatus服务状态
priority: u32服务优先级(数值越小优先级越高)
Trait Implementations§
Source§impl Clone for ServiceMetadata
impl Clone for ServiceMetadata
Source§fn clone(&self) -> ServiceMetadata
fn clone(&self) -> ServiceMetadata
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 ServiceMetadata
impl Debug for ServiceMetadata
Source§impl<'de> Deserialize<'de> for ServiceMetadata
impl<'de> Deserialize<'de> for ServiceMetadata
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
Auto Trait Implementations§
impl Freeze for ServiceMetadata
impl RefUnwindSafe for ServiceMetadata
impl Send for ServiceMetadata
impl Sync for ServiceMetadata
impl Unpin for ServiceMetadata
impl UnsafeUnpin for ServiceMetadata
impl UnwindSafe for ServiceMetadata
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