Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit90c92c2

Browse files
committed
feat(types): add default derive to json wrapper
Adds a Default impl for `Json<T> where T: Default` allowing for otherstructs to use the wrapper and implement Default.
1 parentbbc0414 commit90c92c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎postgres-types/src/serde_json_1.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::fmt::Debug;
77
use std::io::Read;
88

99
/// A wrapper type to allow arbitrary `Serialize`/`Deserialize` types to convert to Postgres JSON values.
10-
#[derive(Clone,Debug,PartialEq,Eq)]
10+
#[derive(Clone,Default,Debug,PartialEq,Eq)]
1111
pubstructJson<T>(pubT);
1212

1313
impl<'a,T>FromSql<'a>forJson<T>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp