pub struct ServiceContract {Show 14 fields
pub id: String,
pub name: String,
pub namespace: String,
pub service: String,
pub protocol: String,
pub version: String,
pub revision: String,
pub content: String,
pub interfaces: Vec<InterfaceDescriptor>,
pub ctime: String,
pub mtime: String,
pub status: String,
pub type: String,
pub metadata: HashMap<String, String>,
}
Fields§
§id: String
契约ID
name: String
契约名称 deprecated, use type field
namespace: String
所属命名空间
service: String
所属服务名称
protocol: String
协议,http/grpc/dubbo/thrift
version: String
契约版本
revision: String
信息摘要
content: String
额外描述
interfaces: Vec<InterfaceDescriptor>
接口描述信息
ctime: String
创建时间
mtime: String
更新时间
status: String
接口状态,Offline/Online
type: String
类型
metadata: HashMap<String, String>
标签
Trait Implementations§
Source§impl Clone for ServiceContract
impl Clone for ServiceContract
Source§fn clone(&self) -> ServiceContract
fn clone(&self) -> ServiceContract
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 ServiceContract
impl Debug for ServiceContract
Source§impl Default for ServiceContract
impl Default for ServiceContract
Source§impl Message for ServiceContract
impl Message for ServiceContract
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.Source§impl PartialEq for ServiceContract
impl PartialEq for ServiceContract
impl StructuralPartialEq for ServiceContract
Auto Trait Implementations§
impl Freeze for ServiceContract
impl RefUnwindSafe for ServiceContract
impl Send for ServiceContract
impl Sync for ServiceContract
impl Unpin for ServiceContract
impl UnwindSafe for ServiceContract
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