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

Method as_ref

src/entity/active_model.rs:933–938  ·  view source on GitHub ↗

# Panics Panics if it is [ActiveValue::NotSet]. See [ActiveValue::try_as_ref] for a fallible non-panicking version.

(&self)

Source from the content-addressed store, hash-verified

931 ///
932 /// See [ActiveValue::try_as_ref] for a fallible non-panicking version.
933 fn as_ref(&self) -> &V {
934 match self {
935 ActiveValue::Set(value) | ActiveValue::Unchanged(value) => value,
936 ActiveValue::NotSet => panic!("Cannot borrow ActiveValue::NotSet"),
937 }
938 }
939}
940
941impl<V> PartialEq for ActiveValue<V>

Callers 15

impl_relation_traitMethod · 0.80
impl_partial_modelMethod · 0.80
newMethod · 0.80
expandMethod · 0.80
impl_entity_nameMethod · 0.80
derive_active_modelFunction · 0.80
newMethod · 0.80
newMethod · 0.80
impl_active_enumMethod · 0.80
newMethod · 0.80
enum_iter_innerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected