pub struct GetNodesRequest {
pub ref: u32,
pub parent: Option<u32>,
pub recursive: Option<bool>,
pub offset: Option<u32>,
pub rows: Option<u32>,
pub name: Option<String>,
pub use_count: Option<bool>,
pub order_by_translated_name: Option<bool>,
}Fields§
§ref: u32The ID of the metadata field to retrieve nodes from.
parent: Option<u32>Restrict results to children of this parent node ID.
recursive: Option<bool>If set, retrieves all descendant nodes recursively.
offset: Option<u32>Number of nodes to skip, used for pagination.
rows: Option<u32>Maximum number of nodes to return.
name: Option<String>Filter nodes by name (partial match).
use_count: Option<bool>If set, includes the number of resources using each node.
order_by_translated_name: Option<bool>If set, orders results by the translated node name.
Implementations§
Source§impl GetNodesRequest
impl GetNodesRequest
pub fn new(ref: u32) -> Self
pub fn parent(self, parent: u32) -> Self
pub fn recursive(self, recursive: bool) -> Self
pub fn offset(self, offset: u32) -> Self
pub fn rows(self, rows: u32) -> Self
pub fn name(self, name: impl Into<String>) -> Self
pub fn use_count(self, use_count: bool) -> Self
pub fn order_by_translated_name(self, order_by_translated_name: bool) -> Self
Trait Implementations§
Source§impl Clone for GetNodesRequest
impl Clone for GetNodesRequest
Source§fn clone(&self) -> GetNodesRequest
fn clone(&self) -> GetNodesRequest
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 GetNodesRequest
impl Debug for GetNodesRequest
Source§impl PartialEq for GetNodesRequest
impl PartialEq for GetNodesRequest
Source§impl Serialize for GetNodesRequest
impl Serialize for GetNodesRequest
impl StructuralPartialEq for GetNodesRequest
Auto Trait Implementations§
impl Freeze for GetNodesRequest
impl RefUnwindSafe for GetNodesRequest
impl Send for GetNodesRequest
impl Sync for GetNodesRequest
impl Unpin for GetNodesRequest
impl UnsafeUnpin for GetNodesRequest
impl UnwindSafe for GetNodesRequest
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