pub struct ExpandOptions {
pub depth: usize,
pub view_mode: ViewMode,
pub roles: Option<Vec<String>>,
pub tags: Option<Vec<String>>,
}Expand description
Options for expansion operations.
Fields§
§depth: usizeMaximum depth to expand.
view_mode: ViewModeView mode for results.
roles: Option<Vec<String>>Filter by semantic roles.
Filter by tags.
Implementations§
Source§impl ExpandOptions
impl ExpandOptions
pub fn new() -> Self
pub fn with_depth(self, depth: usize) -> Self
pub fn with_view_mode(self, mode: ViewMode) -> Self
pub fn with_roles(self, roles: Vec<String>) -> Self
Trait Implementations§
Source§impl Clone for ExpandOptions
impl Clone for ExpandOptions
Source§fn clone(&self) -> ExpandOptions
fn clone(&self) -> ExpandOptions
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 ExpandOptions
impl Debug for ExpandOptions
Source§impl Default for ExpandOptions
impl Default for ExpandOptions
Source§fn default() -> ExpandOptions
fn default() -> ExpandOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ExpandOptions
impl RefUnwindSafe for ExpandOptions
impl Send for ExpandOptions
impl Sync for ExpandOptions
impl Unpin for ExpandOptions
impl UnwindSafe for ExpandOptions
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