[][src]Trait aws_iam::report::PolicyVisitor

pub trait PolicyVisitor {
    fn start(&self, writer: &mut dyn Write) { ... }
fn id(&self, writer: &mut dyn Write, i: &String) { ... }
fn version(&self, writer: &mut dyn Write, v: &Version) { ... }
fn statement<'a>(&'a self) -> Option<Box<&'a dyn StatementVisitor>> { ... }
fn finish(&self, writer: &mut dyn Write) { ... } }

Walk the elements of a Policy struct. The implementation of this trait will be called by walk_policy.

  1. start()
  2. id()
  3. version()
  4. let statement visitor = statement()
  5. if statement visitor, visit each statement in turn (in the order they are in the JSON file)
  6. finish()

Provided methods

fn start(&self, writer: &mut dyn Write)

Called to signal the walker has started a Policy.

fn id(&self, writer: &mut dyn Write, i: &String)

Called by the walker to allow handling of the id component of the Policy.

fn version(&self, writer: &mut dyn Write, v: &Version)

Called by the walker to allow handling of the version component of the Policy.

fn statement<'a>(&'a self) -> Option<Box<&'a dyn StatementVisitor>>

Return an associated StatementVisitor if necessary.

fn finish(&self, writer: &mut dyn Write)

Called to signal the walker has finished the Policy.

Loading content...

Implementors

impl PolicyVisitor for MarkdownGenerator[src]

Loading content...