pub enum RbumRelEnvKind {
DatetimeRange,
TimeRange,
Ips,
CallFrequency,
CallCount,
}Expand description
Resource relation environment kind
资源关联环境类型
Used to associate resources with restrictions.
用于给资源关联加上限制条件。
Variants§
DatetimeRange
Datetime range
日期时间范围
Format: UNIX timestamp
TimeRange
Time range
时间范围
Format: hhmmss.
hh = two digits of hour (00 through 23) (am/pm NOT allowed) mm = two digits of minute (00 through 59) ss = two digits of second (00 through 59)
Ips
IP list
IP地址
Format: ip1,ip2,ip3
CallFrequency
Call frequency
调用频率
Request value must be less than or equal to the set value.
请求的值要小于等于设置的值。
CallCount
Call count
调用次数
Request value must be less than or equal to the set value.
请求的值要小于等于设置的值。
Implementations§
Source§impl RbumRelEnvKind
impl RbumRelEnvKind
pub fn from_int(s: i16) -> TardisResult<RbumRelEnvKind>
pub fn to_int(&self) -> i16
Trait Implementations§
Source§impl Clone for RbumRelEnvKind
impl Clone for RbumRelEnvKind
Source§fn clone(&self) -> RbumRelEnvKind
fn clone(&self) -> RbumRelEnvKind
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 RbumRelEnvKind
impl Debug for RbumRelEnvKind
Source§impl<'de> Deserialize<'de> for RbumRelEnvKind
impl<'de> Deserialize<'de> for RbumRelEnvKind
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 Display for RbumRelEnvKind
impl Display for RbumRelEnvKind
Source§impl ParseFromJSON for RbumRelEnvKind
impl ParseFromJSON for RbumRelEnvKind
Source§fn parse_from_json(value: Option<Value>) -> ParseResult<Self>
fn parse_from_json(value: Option<Value>) -> ParseResult<Self>
Parse from
serde_json::Value.Source§fn parse_from_json_string(s: &str) -> Result<Self, ParseError<Self>>
fn parse_from_json_string(s: &str) -> Result<Self, ParseError<Self>>
Parse from JSON string.
Source§impl ParseFromMultipartField for RbumRelEnvKind
impl ParseFromMultipartField for RbumRelEnvKind
Source§async fn parse_from_multipart(field: Option<Field>) -> ParseResult<Self>
async fn parse_from_multipart(field: Option<Field>) -> ParseResult<Self>
Parse from multipart field.
Source§fn parse_from_repeated_field(
self,
_field: Field,
) -> impl Future<Output = Result<Self, ParseError<Self>>> + Send
fn parse_from_repeated_field( self, _field: Field, ) -> impl Future<Output = Result<Self, ParseError<Self>>> + Send
Parse from repeated multipart field.
Source§impl ParseFromParameter for RbumRelEnvKind
impl ParseFromParameter for RbumRelEnvKind
Source§fn parse_from_parameter(value: &str) -> ParseResult<Self>
fn parse_from_parameter(value: &str) -> ParseResult<Self>
Parse from parameter.
Source§fn parse_from_parameters<I, A>(iter: I) -> Result<Self, ParseError<Self>>
fn parse_from_parameters<I, A>(iter: I) -> Result<Self, ParseError<Self>>
Parse from multiple parameters.
Source§impl PartialEq for RbumRelEnvKind
impl PartialEq for RbumRelEnvKind
Source§impl Serialize for RbumRelEnvKind
impl Serialize for RbumRelEnvKind
Source§impl ToJSON for RbumRelEnvKind
impl ToJSON for RbumRelEnvKind
Source§impl TryGetable for RbumRelEnvKind
impl TryGetable for RbumRelEnvKind
Source§fn try_get(res: &QueryResult, pre: &str, col: &str) -> Result<Self, TryGetError>
fn try_get(res: &QueryResult, pre: &str, col: &str) -> Result<Self, TryGetError>
Get a value from the query result with prefixed column name
Source§fn try_get_by<I: ColIdx>(
_res: &QueryResult,
_index: I,
) -> Result<Self, TryGetError>
fn try_get_by<I: ColIdx>( _res: &QueryResult, _index: I, ) -> Result<Self, TryGetError>
Get a value from the query result with an ColIdx
Source§fn try_get_by_index(
res: &QueryResult,
index: usize,
) -> Result<Self, TryGetError>
fn try_get_by_index( res: &QueryResult, index: usize, ) -> Result<Self, TryGetError>
Get a value from the query result based on the order in the select expressions
Source§impl Type for RbumRelEnvKind
impl Type for RbumRelEnvKind
Source§const IS_REQUIRED: bool = true
const IS_REQUIRED: bool = true
If it is
true, it means that this type is required.Source§type RawValueType = RbumRelEnvKind
type RawValueType = RbumRelEnvKind
The raw type used for validator. Read more
Source§type RawElementValueType = RbumRelEnvKind
type RawElementValueType = RbumRelEnvKind
The raw element type used for validator.
Source§fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn as_raw_value(&self) -> Option<&Self::RawValueType>
Returns a reference to the raw value.
Source§fn schema_ref() -> MetaSchemaRef
fn schema_ref() -> MetaSchemaRef
Get schema reference of this type.
Source§fn raw_element_iter<'a>(
&'a self,
) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Returns an iterator for traversing the elements.
impl Eq for RbumRelEnvKind
impl StructuralPartialEq for RbumRelEnvKind
Auto Trait Implementations§
impl Freeze for RbumRelEnvKind
impl RefUnwindSafe for RbumRelEnvKind
impl Send for RbumRelEnvKind
impl Sync for RbumRelEnvKind
impl Unpin for RbumRelEnvKind
impl UnwindSafe for RbumRelEnvKind
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<V> PrimaryKeyArity for Vwhere
V: TryGetable,
impl<V> PrimaryKeyArity for Vwhere
V: TryGetable,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.
Source§impl<T> TryGetableMany for Twhere
T: TryGetable,
impl<T> TryGetableMany for Twhere
T: TryGetable,
Source§fn try_get_many(
res: &QueryResult,
pre: &str,
cols: &[String],
) -> Result<T, TryGetError>
fn try_get_many( res: &QueryResult, pre: &str, cols: &[String], ) -> Result<T, TryGetError>
Get a tuple value from the query result with prefixed column name
Source§fn try_get_many_by_index(res: &QueryResult) -> Result<T, TryGetError>
fn try_get_many_by_index(res: &QueryResult) -> Result<T, TryGetError>
Get a tuple value from the query result based on the order in the select expressions