#[non_exhaustive]pub struct RulesFile {
pub rules_source_filename: String,
pub rules_content: String,
/* private fields */
}Expand description
Details of a single rules file.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.rules_source_filename: StringRequired. The filename of the rules that needs to be converted. The filename is used mainly so that future logs of the import rules job contain it, and can therefore be searched by it.
rules_content: StringRequired. The text content of the rules that needs to be converted.
Implementations§
Source§impl RulesFile
impl RulesFile
pub fn new() -> Self
Sourcepub fn set_rules_source_filename<T: Into<String>>(self, v: T) -> Self
pub fn set_rules_source_filename<T: Into<String>>(self, v: T) -> Self
Sets the value of rules_source_filename.
Sourcepub fn set_rules_content<T: Into<String>>(self, v: T) -> Self
pub fn set_rules_content<T: Into<String>>(self, v: T) -> Self
Sets the value of rules_content.
Trait Implementations§
impl StructuralPartialEq for RulesFile
Auto Trait Implementations§
impl Freeze for RulesFile
impl RefUnwindSafe for RulesFile
impl Send for RulesFile
impl Sync for RulesFile
impl Unpin for RulesFile
impl UnwindSafe for RulesFile
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