insert nulos inteiros #130
PauloCotrim
started this conversation in
General
Replies: 2 comments 1 reply
-
O null é tratado com Option. Sua struct ficaria parecida com isso: #[derive(Clone, IntoParams)]
struct ParamTest {
meu_campo: Option<i32>
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
Temos um exemplo nos testes: rsfbclient/src/tests/params.rs Line 42 in 8bf69e5 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Desculpe pela ignorancia, sei que o rust não tem nulos.
Existe alguma forma de inserir nulo em um campo inteiro ?
Eu faço os parametros na struct e defino os tipos.
Beta Was this translation helpful? Give feedback.
All reactions