Skip to content

Commit

Permalink
feat(named-args): add doc comment suggested by @aljazerzen
Browse files Browse the repository at this point in the history
  • Loading branch information
MrFoxPro committed Apr 9, 2024
1 parent b1abcb9 commit 4fc736b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions edgedb-protocol/src/query_arg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -527,9 +527,10 @@ implement_tuple! {10, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, }
implement_tuple! {11, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, }
implement_tuple! {12, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, }

// This supertype allows user to provide both
// Into<Value>, Option<Into<Value>>, Vec<Into<Value>>, Option<Vec<Into<Value>>>
// types in HashMap
/// An optional [Value] that can be constructed from `impl Into<Value>`,
/// `Option<impl Into<Value>>`, `Vec<impl Into<Value>>` or
/// `Option<Vec<impl Into<Value>>>`.
/// Used by [eargs!] macro.
pub struct UserValue(Option<Value>);

impl<V: Into<Value>> From<V> for UserValue {
Expand Down

0 comments on commit 4fc736b

Please sign in to comment.