Skip to content

Commit

Permalink
🔧 Updated how-to-use
Browse files Browse the repository at this point in the history
  • Loading branch information
nwrenger committed Jul 31, 2024
1 parent 4da5cbf commit ad7b38d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,13 @@ use gluer::metadata;
#[derive(Default, serde::Serialize)]
struct Book {
name: String,
// Sometimes you don't have access to certain data types, so you can override them using `#[meta(into = Type)]` or skip the entirely via `#[meta(skip)]`
// Sometimes you don't have access to certain data types,
// so you can override them using `#[meta(into = Type)]`
// or skip them entirely via `#[meta(skip)]`
#[meta(into = String)]
user: User,
#[meta(skip)]
borrower: User,
}

#[derive(Default, serde::Serialize)]
Expand Down

0 comments on commit ad7b38d

Please sign in to comment.