Skip to content

Commit

Permalink
Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tyt2y3 committed Dec 18, 2021
1 parent adfb9ea commit 09fd9ba
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/entity/active_model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ pub use ActiveValue::NotSet;
/// Defines a stateful value used in ActiveModel.
///
/// There are three possible state represented by three enum variants.
/// - [ActiveValue::Set]: A [Value] was set
/// - [ActiveValue::Unchanged]: A [Value] remain unchanged
/// - [ActiveValue::NotSet]: A NULL value similar to [Option::None]
/// - [ActiveValue::Set]: A defined [Value] actively being set
/// - [ActiveValue::Unchanged]: A defined [Value] remain unchanged
/// - [ActiveValue::NotSet]: An undefined [Value]
///
/// The stateful value is useful when constructing UPDATE SQL statement,
/// see an example below.
Expand Down Expand Up @@ -40,11 +40,11 @@ pub enum ActiveValue<V>
where
V: Into<Value>,
{
/// A [Value] was set
/// A defined [Value] actively being set
Set(V),
/// A [Value] remain unchanged
/// A defined [Value] remain unchanged
Unchanged(V),
/// A NULL value similar to [Option::None]
/// An undefined [Value]
NotSet,
}

Expand Down

0 comments on commit 09fd9ba

Please sign in to comment.