File: deny_missing_docs.rs

package info (click to toggle)
rust-derive-builder 0.20.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 500 kB
  • sloc: makefile: 2
file content (22 lines) | stat: -rw-r--r-- 508 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//! Some people may have `#![deny(missing_docs)]` in their crate.
//!
//! NOTE: This can only be tested in examples, but not integration tests.
#![deny(missing_docs)]

use derive_builder::Builder;

/// Traditional form of communication.
#[derive(Debug, Builder)]
#[builder(setter(into))]
pub struct Letter {
    /// Be creative.
    pub message: String,
}

fn main() {
    let x = LetterBuilder::default()
        .message("Hello World!")
        .build()
        .unwrap();
    println!("{}", x.message);
}