geekorm_core/builder/values/
valuuid.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! UUID value implementation for the Value enum.
use super::Value;
use crate::builder::keys::primary::PrimaryKeyUuid;

impl From<PrimaryKeyUuid> for Value {
    fn from(value: PrimaryKeyUuid) -> Self {
        Value::Text(value.value.to_string())
    }
}

impl From<&PrimaryKeyUuid> for Value {
    fn from(value: &PrimaryKeyUuid) -> Self {
        Value::Text(value.value.to_string())
    }
}