pub struct SandboxPath {
pub path: PathBuf,
pub kind: PathKind,
}Expand description
A path with an explicit kind for SBPL generation.
Convention: in YAML configs, paths ending with / are directories
(generate SBPL subpath), paths without trailing / are files
(generate SBPL literal). Regex paths are only constructed
programmatically (not from YAML).
Fields§
§path: PathBuf§kind: PathKindImplementations§
Source§impl SandboxPath
impl SandboxPath
Trait Implementations§
Source§impl Clone for SandboxPath
impl Clone for SandboxPath
Source§fn clone(&self) -> SandboxPath
fn clone(&self) -> SandboxPath
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SandboxPath
impl Debug for SandboxPath
Source§impl<'de> Deserialize<'de> for SandboxPath
impl<'de> Deserialize<'de> for SandboxPath
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SandboxPath
impl Display for SandboxPath
impl Eq for SandboxPath
Source§impl PartialEq for SandboxPath
impl PartialEq for SandboxPath
Source§impl Serialize for SandboxPath
impl Serialize for SandboxPath
impl StructuralPartialEq for SandboxPath
Auto Trait Implementations§
impl Freeze for SandboxPath
impl RefUnwindSafe for SandboxPath
impl Send for SandboxPath
impl Sync for SandboxPath
impl Unpin for SandboxPath
impl UnsafeUnpin for SandboxPath
impl UnwindSafe for SandboxPath
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.