pub struct Meta {
pub key: MetaKey,
pub instances: u32,
pub destination_rule: DestinationRule,
pub state: Option<ServiceState>,
pub category: Option<u32>,
pub tls: Option<bool>,
pub extend: Option<String>,
pub revision: Option<i64>,
}
Fields§
§key: MetaKey
key
instances: u32
要部署的实例总数
destination_rule: DestinationRule
转发规则
state: Option<ServiceState>
状态类型
category: Option<u32>
服务类别
tls: Option<bool>
启用tls
extend: Option<String>
扩展
revision: Option<i64>
版本, 只读的
Implementations§
Source§impl Meta
impl Meta
pub fn from_key(key: MetaKey) -> Meta
pub fn new(key: MetaKey, instances: u32) -> Meta
pub fn destination_rule(self, destination_rule: DestinationRule) -> Meta
pub fn state(self, state: Option<ServiceState>) -> Meta
pub fn category(self, category: Option<u32>) -> Meta
pub fn tls(self, tls: Option<bool>) -> Meta
pub fn extend<S>(self, extend: Option<S>) -> Meta
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Meta
impl<'de> Deserialize<'de> for Meta
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Meta, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Meta, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Meta
impl Serialize for Meta
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for Meta
impl RefUnwindSafe for Meta
impl Send for Meta
impl Sync for Meta
impl Unpin for Meta
impl UnwindSafe for Meta
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request