pub struct RuleExport {
pub metadata: ExportMetadata,
pub rules: Vec<Rule>,
}Expand description
Container for exported rules with metadata
Fields§
§metadata: ExportMetadataExport metadata
rules: Vec<Rule>Exported rules
Implementations§
Source§impl RuleExport
impl RuleExport
Sourcepub fn write_to_file(&self, path: &Path) -> Result<()>
pub fn write_to_file(&self, path: &Path) -> Result<()>
Write to file
Sourcepub fn read_from_file(path: &Path) -> Result<Self>
pub fn read_from_file(path: &Path) -> Result<Self>
Read from file
Trait Implementations§
Source§impl Clone for RuleExport
impl Clone for RuleExport
Source§fn clone(&self) -> RuleExport
fn clone(&self) -> RuleExport
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 moreSource§impl Debug for RuleExport
impl Debug for RuleExport
Source§impl<'de> Deserialize<'de> for RuleExport
impl<'de> Deserialize<'de> for RuleExport
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
Auto Trait Implementations§
impl Freeze for RuleExport
impl RefUnwindSafe for RuleExport
impl Send for RuleExport
impl Sync for RuleExport
impl Unpin for RuleExport
impl UnwindSafe for RuleExport
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