Docs
This commit is contained in:
parent
adfb9ead54
commit
09fd9ba725
@ -10,9 +10,9 @@ pub use ActiveValue::NotSet;
|
|||||||
/// Defines a stateful value used in ActiveModel.
|
/// Defines a stateful value used in ActiveModel.
|
||||||
///
|
///
|
||||||
/// There are three possible state represented by three enum variants.
|
/// There are three possible state represented by three enum variants.
|
||||||
/// - [ActiveValue::Set]: A [Value] was set
|
/// - [ActiveValue::Set]: A defined [Value] actively being set
|
||||||
/// - [ActiveValue::Unchanged]: A [Value] remain unchanged
|
/// - [ActiveValue::Unchanged]: A defined [Value] remain unchanged
|
||||||
/// - [ActiveValue::NotSet]: A NULL value similar to [Option::None]
|
/// - [ActiveValue::NotSet]: An undefined [Value]
|
||||||
///
|
///
|
||||||
/// The stateful value is useful when constructing UPDATE SQL statement,
|
/// The stateful value is useful when constructing UPDATE SQL statement,
|
||||||
/// see an example below.
|
/// see an example below.
|
||||||
@ -40,11 +40,11 @@ pub enum ActiveValue<V>
|
|||||||
where
|
where
|
||||||
V: Into<Value>,
|
V: Into<Value>,
|
||||||
{
|
{
|
||||||
/// A [Value] was set
|
/// A defined [Value] actively being set
|
||||||
Set(V),
|
Set(V),
|
||||||
/// A [Value] remain unchanged
|
/// A defined [Value] remain unchanged
|
||||||
Unchanged(V),
|
Unchanged(V),
|
||||||
/// A NULL value similar to [Option::None]
|
/// An undefined [Value]
|
||||||
NotSet,
|
NotSet,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user