pub enum RbumRelFromKind {
Item,
Set,
SetCate,
Cert,
}Expand description
Resource relation kind
资源关联的类型
Variants§
Item
Resource item
资源项
Set
Resource set
资源集
SetCate
Resource set category(node)
资源集分类(节点)
Cert
Resource certificate
资源凭证
Implementations§
Source§impl RbumRelFromKind
impl RbumRelFromKind
pub fn from_int(s: i16) -> TardisResult<RbumRelFromKind>
pub fn to_int(&self) -> i16
Trait Implementations§
Source§impl Clone for RbumRelFromKind
impl Clone for RbumRelFromKind
Source§fn clone(&self) -> RbumRelFromKind
fn clone(&self) -> RbumRelFromKind
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 RbumRelFromKind
impl Debug for RbumRelFromKind
Source§impl<'de> Deserialize<'de> for RbumRelFromKind
impl<'de> Deserialize<'de> for RbumRelFromKind
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 RbumRelFromKind
impl Display for RbumRelFromKind
Source§impl ParseFromJSON for RbumRelFromKind
impl ParseFromJSON for RbumRelFromKind
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 RbumRelFromKind
impl ParseFromMultipartField for RbumRelFromKind
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 RbumRelFromKind
impl ParseFromParameter for RbumRelFromKind
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 RbumRelFromKind
impl PartialEq for RbumRelFromKind
Source§impl Serialize for RbumRelFromKind
impl Serialize for RbumRelFromKind
Source§impl ToJSON for RbumRelFromKind
impl ToJSON for RbumRelFromKind
Source§impl TryGetable for RbumRelFromKind
impl TryGetable for RbumRelFromKind
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 RbumRelFromKind
impl Type for RbumRelFromKind
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 = RbumRelFromKind
type RawValueType = RbumRelFromKind
The raw type used for validator. Read more
Source§type RawElementValueType = RbumRelFromKind
type RawElementValueType = RbumRelFromKind
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 RbumRelFromKind
impl StructuralPartialEq for RbumRelFromKind
Auto Trait Implementations§
impl Freeze for RbumRelFromKind
impl RefUnwindSafe for RbumRelFromKind
impl Send for RbumRelFromKind
impl Sync for RbumRelFromKind
impl Unpin for RbumRelFromKind
impl UnwindSafe for RbumRelFromKind
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