geekorm_core/builder/values/valuuid.rs
1//! UUID value implementation for the Value enum.
2use super::Value;
3use crate::builder::keys::primary::PrimaryKeyUuid;
4
5impl From<PrimaryKeyUuid> for Value {
6 fn from(value: PrimaryKeyUuid) -> Self {
7 Value::Text(value.value.to_string())
8 }
9}
10
11impl From<&PrimaryKeyUuid> for Value {
12 fn from(value: &PrimaryKeyUuid) -> Self {
13 Value::Text(value.value.to_string())
14 }
15}