Skip to content

Derive empty + wrap #556

@pronebird

Description

@pronebird

Hi,

Is it possible to use empty + wrap helpers at the same time? This does not seem to compile:

#[derive(tabled::Tabled)]
pub struct Model {
    #[tabled(
        rename = "Description",
        display = "tabled::derive::display::empty",
        display("tabled::derive::display::wrap", 15)
    )]
    pub description: Option<String>,
}

Reports:

#[derive(tabled::Tabled)]
    |          ^^^^^^^^^^^^^^ the trait `std::fmt::Display` is not implemented for `Option<std::string::String>

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions