pub struct Script {
pub content_lines: Vec<String>,
pub signature: Option<ScriptSignature>,
}
Fields§
§content_lines: Vec<String>
§signature: Option<ScriptSignature>
Implementations§
Source§impl Script
impl Script
pub fn verify_script_file_with_system_key_map( script_file: &str, ) -> XResult<bool>
pub fn verify_script_file(script_file: &str, key_map: &KeyMap) -> XResult<bool>
pub fn parse(script: &str) -> XResult<Script>
pub fn as_string(&self) -> String
pub fn has_signature(&self) -> bool
pub fn verify(&self, key_map: &KeyMap) -> XResult<bool>
pub fn sign(&mut self) -> XResult<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Script
impl RefUnwindSafe for Script
impl Send for Script
impl Sync for Script
impl Unpin for Script
impl UnwindSafe for Script
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