pub struct ReadFilePolicy {
pub allowed_root: PathBuf,
pub max_read_bytes: u64,
pub allow_binary: bool,
}Fields§
§allowed_root: PathBuf§max_read_bytes: u64§allow_binary: boolImplementations§
Source§impl ReadFilePolicy
impl ReadFilePolicy
pub fn default_for_root(allowed_root: PathBuf) -> Self
Trait Implementations§
Source§impl Clone for ReadFilePolicy
impl Clone for ReadFilePolicy
Source§fn clone(&self) -> ReadFilePolicy
fn clone(&self) -> ReadFilePolicy
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 moreAuto Trait Implementations§
impl Freeze for ReadFilePolicy
impl RefUnwindSafe for ReadFilePolicy
impl Send for ReadFilePolicy
impl Sync for ReadFilePolicy
impl Unpin for ReadFilePolicy
impl UnsafeUnpin for ReadFilePolicy
impl UnwindSafe for ReadFilePolicy
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