Skip to content

Add a defer attribute #1

@Michael-F-Bryan

Description

@Michael-F-Bryan

Some KV types may contain other KV types, it'd be nice if we invoked KV::serialize() on those instead of Value::serialize().

e.g.

#[derive(KV)]
pub struct Foo {
  #[slog(defer)]
  bar: Bar,
}

#[derive(KV)]
pub stuct Bar {
  x: usize,
  path: String.
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions