[−][src]Trait aws_iam::report::StatementVisitor
Walk the elements of a Statement
struct. The implementation of this trait will be called
by walk_policy
in the following order.
start()
sid()
effect()
principal()
action()
resource()
- let condition visitor =
condition()
- if condition visitor, visit each condition 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 Statement.
fn sid(&self, writer: &mut dyn Write, s: &String)
Called by the walker to allow handling of the sid
component of the Statement.
fn effect(&self, writer: &mut dyn Write, e: &Effect)
Called by the walker to allow handling of the effect
component of the Statement.
fn principal(&self, writer: &mut dyn Write, p: &Principal)
Called by the walker to allow handling of the principal
component of the Statement.
fn action(&self, writer: &mut dyn Write, a: &Action)
Called by the walker to allow handling of the action
component of the Statement.
fn resource(&self, writer: &mut dyn Write, r: &Resource)
Called by the walker to allow handling of the resource
component of the Statement.
fn condition<'a>(&'a self) -> Option<Box<&'a dyn ConditionVisitor>>
Return an associated ConditionVisitor
if necessary.
fn finish(&self, writer: &mut dyn Write)
Called to signal the walker has finished the Statement.