pub struct CategoryNode {
pub id: Option<String>,
pub category_id: Option<String>,
pub sorting_priority: Option<i32>,
pub children: Option<Vec<Box<CategoryNode>>>,
}
Fields
id: Option<String>
category_id: Option<String>
sorting_priority: Option<i32>
children: Option<Vec<Box<CategoryNode>>>
Implementations
sourceimpl CategoryNode
impl CategoryNode
pub fn new<F1, F2, F3, F4>(
id: F1,
category_id: F2,
sorting_priority: F3,
children: F4
) -> CategoryNodewhere
F1: Into<Option<String>>,
F2: Into<Option<String>>,
F3: Into<Option<i32>>,
F4: Into<Option<Vec<Box<CategoryNode>>>>,
pub fn read_from_in_protocol(
i_prot: &mut dyn TInputProtocol
) -> Result<CategoryNode>
pub fn write_to_out_protocol(
&self,
o_prot: &mut dyn TOutputProtocol
) -> Result<()>
Trait Implementations
sourceimpl Clone for CategoryNode
impl Clone for CategoryNode
sourcefn clone(&self) -> CategoryNode
fn clone(&self) -> CategoryNode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CategoryNode
impl Debug for CategoryNode
sourceimpl Default for CategoryNode
impl Default for CategoryNode
sourceimpl Hash for CategoryNode
impl Hash for CategoryNode
sourceimpl Ord for CategoryNode
impl Ord for CategoryNode
sourcefn cmp(&self, other: &CategoryNode) -> Ordering
fn cmp(&self, other: &CategoryNode) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<CategoryNode> for CategoryNode
impl PartialEq<CategoryNode> for CategoryNode
sourcefn eq(&self, other: &CategoryNode) -> bool
fn eq(&self, other: &CategoryNode) -> bool
sourceimpl PartialOrd<CategoryNode> for CategoryNode
impl PartialOrd<CategoryNode> for CategoryNode
sourcefn partial_cmp(&self, other: &CategoryNode) -> Option<Ordering>
fn partial_cmp(&self, other: &CategoryNode) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for CategoryNode
impl StructuralEq for CategoryNode
impl StructuralPartialEq for CategoryNode
Auto Trait Implementations
impl RefUnwindSafe for CategoryNode
impl Send for CategoryNode
impl Sync for CategoryNode
impl Unpin for CategoryNode
impl UnwindSafe for CategoryNode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more