[−][src]Trait aws_iam::report::PolicyVisitor
Walk the elements of a Policy
struct. The implementation of this trait will be called
by walk_policy
.
start()
id()
version()
- let statement visitor =
statement()
- if statement visitor, visit each statement in turn (in the order they are in the JSON file)
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.