forge
Explore
Log in

Don't you dare go Hollow

From<Option<String>>/From<Option<i64>> for Param (L8/L10 clearable columns)

Browse files at this commit

b26cabb55ab3e74f6ebbfd6e5c36aca5fe6006b4Ahmet Kaan GümüşParent: e4b7f45
  • feat
    • From<Option<String>>/From<Option<i64>> for Param (L8/L10 clearable columns)
Show full message
🗃️ feat: From<Option<String>>/From<Option<i64>> for Param (L8/L10 clearable columns)
src/db/page.rsmodified+12 -0
@@ -115,6 +115,18 @@ impl From<Option<Uuid>> for Param {
115115 }
116116 }
117117
118+impl From<Option<String>> for Param {
119+ fn from(value: Option<String>) -> Self {
120+ Self::OptText(value)
121+ }
122+}
123+
124+impl From<Option<i64>> for Param {
125+ fn from(value: Option<i64>) -> Self {
126+ Self::OptI64(value)
127+ }
128+}
129+
118130 pub(crate) struct PagedList {
119131 /// Everything after `FROM`, e.g. `note WHERE user_id = $1`. Placeholders
120132 /// are positional in [`PagedList::bind`] order; shared verbatim by the