DynamicRoot

Struct DynamicRoot 

Source
pub struct DynamicRoot { /* private fields */ }
Expand description

Dynamic root configuration created by RootBuilder

Trait Implementations§

Source§

impl Debug for DynamicRoot

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl HasRootAnnotations for DynamicRoot

Source§

fn annotations(&self) -> Option<&HashMap<String, Value>>

Get custom metadata
Source§

fn tags(&self) -> Option<&[String]>

Get root-specific tags or labels
Source§

impl HasRootFiltering for DynamicRoot

Source§

fn allowed_extensions(&self) -> Option<&[String]>

File extensions to include (None = all)
Source§

fn excluded_patterns(&self) -> Option<&[String]>

File patterns to exclude (glob patterns)
Source§

fn should_include(&self, path: &str) -> bool

Check if a file should be included
Source§

impl HasRootMetadata for DynamicRoot

Source§

fn uri(&self) -> &str

The root URI (must start with “file://”)
Source§

fn name(&self) -> Option<&str>

Optional human-readable name
Source§

fn description(&self) -> Option<&str>

Optional description or additional metadata
Source§

impl HasRootPermissions for DynamicRoot

Source§

fn can_read(&self, _path: &str) -> bool

Check if read access is allowed for this path
Source§

fn can_write(&self, _path: &str) -> bool

Check if write access is allowed for this path
Source§

fn max_depth(&self) -> Option<usize>

Get maximum depth for directory traversal

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> RootDefinition for T

Source§

fn to_root(&self) -> Root

Convert this root definition to a protocol Root
Source§

fn validate(&self) -> Result<(), String>

Validate this root definition
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.