pub struct ScriptInfo {
pub name: String,
pub description: Option<String>,
pub path: PathBuf,
pub executable: bool,
pub escapes: bool,
}Expand description
One file in the scripts directory.
Fields§
§name: String§description: Option<String>The first comment line, after any shebang. None when the script has no comment.
path: PathBuf§executable: boolWhether the file’s mode lets it run. A file that is not is still listed, so a script
written without chmod +x is visible rather than mysteriously absent.
escapes: boolSet when the file is a symlink that leads out of the directory: listed so it is visible, never read and never run.
Trait Implementations§
Source§impl Clone for ScriptInfo
impl Clone for ScriptInfo
Source§impl Debug for ScriptInfo
impl Debug for ScriptInfo
impl Eq for ScriptInfo
Source§impl PartialEq for ScriptInfo
impl PartialEq for ScriptInfo
impl StructuralPartialEq for ScriptInfo
Auto Trait Implementations§
impl Forget for ScriptInfo
impl Freeze for ScriptInfo
impl Move for ScriptInfo
impl RefUnwindSafe for ScriptInfo
impl Send for ScriptInfowhere
RawVecInner: Send,
impl Sync for ScriptInfowhere
RawVecInner: Sync,
impl Unpin for ScriptInfo
impl UnsafeUnpin for ScriptInfo
impl UnwindSafe for ScriptInfowhere
RawVecInner: UnwindSafe,
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,
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.