MCPcopy Create free account
hub / github.com/SeaQL/sea-orm / reset_all

Method reset_all

src/entity/active_model.rs:113–118  ·  view source on GitHub ↗

Reset all values from [ActiveValue::Unchanged] to [ActiveValue::Set], leaving [ActiveValue::NotSet] untouched.

(mut self)

Source from the content-addressed store, hash-verified

111 /// Reset all values from [ActiveValue::Unchanged] to [ActiveValue::Set],
112 /// leaving [ActiveValue::NotSet] untouched.
113 fn reset_all(mut self) -> Self {
114 for col in <Self::Entity as EntityTrait>::Column::iter() {
115 self.reset(col);
116 }
117 self
118 }
119
120 /// Get the primary key of the ActiveModel
121 ///

Callers 1

test_reset_2Function · 0.80

Calls 1

resetMethod · 0.45

Tested by 1

test_reset_2Function · 0.64