pub struct ScriptCheck {
pub header: ScriptHeader,
pub functions: Vec<String>,
pub problems: Vec<String>,
pub hash: Option<String>,
pub trust: ScriptTrust,
pub interpreter: Option<String>,
}Expand description
What rewrite_script_check found: the header, the functions the script
defines and everything wrong with it (an empty problems is a script the
engine accepts). A syntax error is a problem, not an error, so an editor
can show it live.
Fields§
§header: ScriptHeader§functions: Vec<String>rewrite_commit, … as defined by the script.
problems: Vec<String>§hash: Option<String>External scripts: the content hash trust is keyed by.
trust: ScriptTrust§interpreter: Option<String>External scripts: the program that will run it (when one was found).
Implementations§
Trait Implementations§
Source§impl Clone for ScriptCheck
impl Clone for ScriptCheck
Source§impl Debug for ScriptCheck
impl Debug for ScriptCheck
Source§impl Default for ScriptCheck
impl Default for ScriptCheck
Source§impl<'de> Deserialize<'de> for ScriptCheck
impl<'de> Deserialize<'de> for ScriptCheck
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
impl Eq for ScriptCheck
Source§impl PartialEq for ScriptCheck
impl PartialEq for ScriptCheck
Source§impl Serialize for ScriptCheck
impl Serialize for ScriptCheck
impl StructuralPartialEq for ScriptCheck
Auto Trait Implementations§
impl Forget for ScriptCheck
impl Freeze for ScriptCheck
impl Move for ScriptCheck
impl RefUnwindSafe for ScriptCheck
impl Send for ScriptCheck
impl Sync for ScriptCheck
impl Unpin for ScriptCheck
impl UnsafeUnpin for ScriptCheck
impl UnwindSafe for ScriptCheck
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