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

Method take

src/entity/active_model.rs:821–826  ·  view source on GitHub ↗

Get the mutable value an [ActiveValue] also setting itself to [ActiveValue::NotSet]

(&mut self)

Source from the content-addressed store, hash-verified

819 /// Get the mutable value an [ActiveValue]
820 /// also setting itself to [ActiveValue::NotSet]
821 pub fn take(&mut self) -> Option<V> {
822 match std::mem::take(self) {
823 ActiveValue::Set(value) | ActiveValue::Unchanged(value) => Some(value),
824 ActiveValue::NotSet => None,
825 }
826 }
827
828 /// Get an owned value of the [ActiveValue]
829 ///

Callers 15

must_be_valid_idenFunction · 0.80
enum_iter_innerFunction · 0.80
commitMethod · 0.80
rollbackMethod · 0.80
find_also_linkedMethod · 0.80
find_with_linkedMethod · 0.80
addMethod · 0.80
add_manyMethod · 0.80
apply_filterMethod · 0.80
create_table_from_entityFunction · 0.80
into_conditionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected