[][src]Trait aws_iam::report::StatementVisitor

pub trait StatementVisitor {
    fn start(&self, writer: &mut dyn Write) { ... }
fn sid(&self, writer: &mut dyn Write, s: &String) { ... }
fn effect(&self, writer: &mut dyn Write, e: &Effect) { ... }
fn principal(&self, writer: &mut dyn Write, p: &Principal) { ... }
fn action(&self, writer: &mut dyn Write, a: &Action) { ... }
fn resource(&self, writer: &mut dyn Write, r: &Resource) { ... }
fn condition<'a>(&'a self) -> Option<Box<&'a dyn ConditionVisitor>> { ... }
fn finish(&self, writer: &mut dyn Write) { ... } }

Walk the elements of a Statement struct. The implementation of this trait will be called by walk_policy in the following order.

  1. start()
  2. sid()
  3. effect()
  4. principal()
  5. action()
  6. resource()
  7. let condition visitor = condition()
  8. if condition visitor, visit each condition in turn (in the order they are in the JSON file)
  9. 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.

Loading content...

Implementors

impl StatementVisitor for MarkdownGenerator[src]

Loading content...