ydb-rs-sdk
ydb-rs-sdk copied to clipboard
dev: usage option type for Value::list_from with example value
Impact Assessment
How would this change affect:
- [ ] Performance
- [ ] Maintainability
- [ ] Backward compatibility
- [x] User experience
Area of Improvement
I need example how to use option type for Value::list_from with example value. The examples have case how to use list value, but haven't use option values
Current Situation
Suggested Improvement
Add new example case with optional usege
I patched sdk at the local version and used next row:
Value::optional_from(Value::Text("".to_string()), Some(Value::Text("test".to_string()))).unwrap(),
is it common way?