pub struct BaseAreaInfoValue {Show 18 fields
pub id: Option<String>,
pub create_ms: Option<i64>,
pub create_id: Option<String>,
pub update_ms: Option<i64>,
pub update_id: Option<String>,
pub del: Option<i32>,
pub ver: Option<i32>,
pub level: Option<i32>,
pub enabled: Option<bool>,
pub name: Option<String>,
pub pinyin: Option<String>,
pub ccode: Option<String>,
pub pcode: Option<String>,
pub type: Option<String>,
pub has_children: Option<bool>,
pub leaf: bool,
pub label: Option<String>,
pub children: Vec<BaseAreaInfoValue>,
}
Fields§
§id: Option<String>
§create_ms: Option<i64>
§create_id: Option<String>
§update_ms: Option<i64>
§update_id: Option<String>
§del: Option<i32>
§ver: Option<i32>
§level: Option<i32>
§enabled: Option<bool>
§name: Option<String>
§pinyin: Option<String>
§ccode: Option<String>
§pcode: Option<String>
§type: Option<String>
§has_children: Option<bool>
§leaf: bool
§label: Option<String>
§children: Vec<BaseAreaInfoValue>
Implementations§
Source§impl BaseAreaInfoValue
impl BaseAreaInfoValue
pub fn from_entity(param: &BaseAreaInfo) -> Self
pub fn from_entity_with( param: &BaseAreaInfo, haschild: bool, children: &[Self], ) -> Self
pub fn to_entity(&self) -> BaseAreaInfo
pub fn build_tree(items: &[Self]) -> Vec<Self>
pub async fn build_parent_tree(items: &mut Vec<Self>, rb: &Rbatis) -> Vec<Self>
pub fn build_normal_tree(items: &mut [Self], level: i32) -> Vec<Self>
Trait Implementations§
Source§impl Clone for BaseAreaInfoValue
impl Clone for BaseAreaInfoValue
Source§fn clone(&self) -> BaseAreaInfoValue
fn clone(&self) -> BaseAreaInfoValue
Returns a copy 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 BaseAreaInfoValue
impl Debug for BaseAreaInfoValue
Source§impl Default for BaseAreaInfoValue
impl Default for BaseAreaInfoValue
Source§fn default() -> BaseAreaInfoValue
fn default() -> BaseAreaInfoValue
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BaseAreaInfoValue
impl<'de> Deserialize<'de> for BaseAreaInfoValue
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
Auto Trait Implementations§
impl Freeze for BaseAreaInfoValue
impl RefUnwindSafe for BaseAreaInfoValue
impl Send for BaseAreaInfoValue
impl Sync for BaseAreaInfoValue
impl Unpin for BaseAreaInfoValue
impl UnwindSafe for BaseAreaInfoValue
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> 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 more