pub struct LaneRule {Show 14 fields
pub id: String,
pub name: String,
pub group_name: String,
pub traffic_match_rule: Option<TrafficMatchRule>,
pub default_label_value: String,
pub enable: bool,
pub match_mode: i32,
pub revision: String,
pub ctime: String,
pub mtime: String,
pub etime: String,
pub priority: u32,
pub description: String,
pub label_key: String,
}
Expand description
泳道规则
Fields§
§id: String
§name: String
§group_name: String
所属泳道组的名称
traffic_match_rule: Option<TrafficMatchRule>
流量匹配规则
default_label_value: String
保存这个泳道的默认实例标签
enable: bool
泳道规则是否启用
match_mode: i32
§revision: String
revision routing version
ctime: String
ctime create time of the rules
mtime: String
mtime modify time of the rules
etime: String
etime enable time of the rules
priority: u32
priority rules priority
description: String
description simple description rules
label_key: String
属于该泳道的实例标签KEY,不填默认为lane
Implementations§
Source§impl LaneRule
impl LaneRule
Sourcepub fn match_mode(&self) -> LaneMatchMode
pub fn match_mode(&self) -> LaneMatchMode
Returns the enum value of match_mode
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_match_mode(&mut self, value: LaneMatchMode)
pub fn set_match_mode(&mut self, value: LaneMatchMode)
Sets match_mode
to the provided enum value.
Trait Implementations§
Source§impl Message for LaneRule
impl Message for LaneRule
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
.impl StructuralPartialEq for LaneRule
Auto Trait Implementations§
impl Freeze for LaneRule
impl RefUnwindSafe for LaneRule
impl Send for LaneRule
impl Sync for LaneRule
impl Unpin for LaneRule
impl UnwindSafe for LaneRule
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