pub struct RbumRelBoneResp {
pub tag: String,
pub note: String,
pub from_rbum_kind: RbumRelFromKind,
pub rel_id: String,
pub rel_name: String,
pub rel_own_paths: String,
pub ext: String,
}Expand description
Resource relationship bone information
资源关联骨干信息
Fields§
§tag: StringRelationship tag
关联标签
note: StringRelationship note
关联备注
from_rbum_kind: RbumRelFromKindRelationship source type
关联来源方的类型
rel_id: StringRelationship source or target id
关联来源方或目标方的id
rel_name: StringRelationship source or target name
关联来源方或目标方的名称
When from_rbum_kind is crate::rbum::rbum_enumeration::RbumRelFromKind::Item is the name of the resource item,
When from_rbum_kind is crate::rbum::rbum_enumeration::RbumRelFromKind::Set is the name of the resource set,
When from_rbum_kind is crate::rbum::rbum_enumeration::RbumRelFromKind::SetCate is the name of the resource set category(node).
当 from_rbum_kind 为 crate::rbum::rbum_enumeration::RbumRelFromKind::Item 时是资源项的名称,
当 from_rbum_kind 为 crate::rbum::rbum_enumeration::RbumRelFromKind::Set 时是资源集的名称,
当 from_rbum_kind 为 crate::rbum::rbum_enumeration::RbumRelFromKind::SetCate 时是资源集分类(节点)的名称。
rel_own_paths: StringRelationship source or target ownership path
关联来源方或目标方的所有权路径
ext: StringRelationship extension information
关联扩展信息
E.g. the record from or to is in another service, to avoid remote calls, you can redundantly add the required information to this field.
例如:记录来源或目标在另一个服务中,为避免远程调用,可以将所需信息冗余添加到此字段。
Implementations§
Source§impl RbumRelBoneResp
impl RbumRelBoneResp
Sourcepub fn new(detail: RbumRelDetailResp, package_to_info: bool) -> RbumRelBoneResp
pub fn new(detail: RbumRelDetailResp, package_to_info: bool) -> RbumRelBoneResp
According to the relationship detail information, generate the relationship summary information
根据关联详细信息生成关联概要信息
§Arguments
detail- Relationship detail informationpackage_to_info- Iftrue, generate the summary information of the relationship source side, iffalse, generate the summary information of the relationship target side
Trait Implementations§
Source§impl Clone for RbumRelBoneResp
impl Clone for RbumRelBoneResp
Source§fn clone(&self) -> RbumRelBoneResp
fn clone(&self) -> RbumRelBoneResp
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RbumRelBoneResp
impl Debug for RbumRelBoneResp
Source§impl<'de> Deserialize<'de> for RbumRelBoneResp
impl<'de> Deserialize<'de> for RbumRelBoneResp
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>,
Source§impl FromQueryResult for RbumRelBoneResp
impl FromQueryResult for RbumRelBoneResp
Source§fn from_query_result(row: &QueryResult, pre: &str) -> Result<Self, DbErr>
fn from_query_result(row: &QueryResult, pre: &str) -> Result<Self, DbErr>
Source§fn from_query_result_nullable(
row: &QueryResult,
pre: &str,
) -> Result<Self, TryGetError>
fn from_query_result_nullable( row: &QueryResult, pre: &str, ) -> Result<Self, TryGetError>
Source§fn from_query_result_optional(
res: &QueryResult,
pre: &str,
) -> Result<Option<Self>, DbErr>
fn from_query_result_optional( res: &QueryResult, pre: &str, ) -> Result<Option<Self>, DbErr>
Source§fn find_by_statement(stmt: Statement) -> SelectorRaw<SelectModel<Self>>
fn find_by_statement(stmt: Statement) -> SelectorRaw<SelectModel<Self>>
impl IsObjectType for RbumRelBoneResp
Source§impl ParseFromJSON for RbumRelBoneResp
impl ParseFromJSON for RbumRelBoneResp
Source§fn parse_from_json(value: Option<Value>) -> Result<Self, ParseError<Self>>
fn parse_from_json(value: Option<Value>) -> Result<Self, ParseError<Self>>
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>>
Source§impl ParseFromXML for RbumRelBoneResp
impl ParseFromXML for RbumRelBoneResp
Source§fn parse_from_xml(value: Option<Value>) -> Result<Self, ParseError<Self>>
fn parse_from_xml(value: Option<Value>) -> Result<Self, ParseError<Self>>
serde_json::Value.Source§fn parse_from_xml_string(s: &str) -> Result<Self, ParseError<Self>>
fn parse_from_xml_string(s: &str) -> Result<Self, ParseError<Self>>
Source§impl ParseFromYAML for RbumRelBoneResp
impl ParseFromYAML for RbumRelBoneResp
Source§fn parse_from_yaml(value: Option<Value>) -> Result<Self, ParseError<Self>>
fn parse_from_yaml(value: Option<Value>) -> Result<Self, ParseError<Self>>
serde_json::Value.Source§fn parse_from_yaml_string(s: &str) -> Result<Self, ParseError<Self>>
fn parse_from_yaml_string(s: &str) -> Result<Self, ParseError<Self>>
Source§impl Serialize for RbumRelBoneResp
impl Serialize for RbumRelBoneResp
Source§impl ToJSON for RbumRelBoneResp
impl ToJSON for RbumRelBoneResp
Source§impl ToXML for RbumRelBoneResp
impl ToXML for RbumRelBoneResp
Source§impl ToYAML for RbumRelBoneResp
impl ToYAML for RbumRelBoneResp
Source§impl Type for RbumRelBoneResp
impl Type for RbumRelBoneResp
Source§const IS_REQUIRED: bool = true
const IS_REQUIRED: bool = true
true, it means that this type is required.Source§type RawValueType = RbumRelBoneResp
type RawValueType = RbumRelBoneResp
Source§type RawElementValueType = RbumRelBoneResp
type RawElementValueType = RbumRelBoneResp
Source§fn schema_ref() -> MetaSchemaRef
fn schema_ref() -> MetaSchemaRef
Source§fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn as_raw_value(&self) -> Option<&Self::RawValueType>
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>
Auto Trait Implementations§
impl Freeze for RbumRelBoneResp
impl RefUnwindSafe for RbumRelBoneResp
impl Send for RbumRelBoneResp
impl Sync for RbumRelBoneResp
impl Unpin for RbumRelBoneResp
impl UnsafeUnpin for RbumRelBoneResp
impl UnwindSafe for RbumRelBoneResp
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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>
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>
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 more