pub struct Ruleset {
pub version: Version,
pub file_name: Option<String>,
pub functions: Vec<Function>,
pub services: Vec<Service>,
pub parens: HashMap<(usize, usize), Vec<Span>>,
}Fields§
§version: Version§file_name: Option<String>The name of the file it was compiled from, as the request gave it.
functions: Vec<Function>Functions declared at the top level, outside any service.
services: Vec<Service>§parens: HashMap<(usize, usize), Vec<Span>>The opening parentheses around each parenthesized expression, outermost first, by the expression’s byte range. The AST leaves parentheses out; the coverage report and the positions of evaluation errors count an expression from its parentheses.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Ruleset
Auto Trait Implementations§
impl Forget for Ruleset
impl Freeze for Ruleset
impl RefUnwindSafe for Ruleset
impl Send for Ruleset
impl Sync for Ruleset
impl Unpin for Ruleset
impl UnsafeUnpin for Ruleset
impl UnwindSafe for Ruleset
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