Enum surrealml_core::storage::header::origin::OriginValue
source · pub enum OriginValue {
Local(StringValue),
SurrealDb(StringValue),
None(StringValue),
}
Expand description
Defines the types of origin that are supported.
§Fields
Local
- The model was created locally.SurrealDb
- The model was created in the surreal database.None
- The model has no origin
Variants§
Implementations§
source§impl OriginValue
impl OriginValue
sourcepub fn from_string(origin: String) -> Result<Self, SurrealError>
pub fn from_string(origin: String) -> Result<Self, SurrealError>
Trait Implementations§
source§impl Debug for OriginValue
impl Debug for OriginValue
source§impl PartialEq for OriginValue
impl PartialEq for OriginValue
source§fn eq(&self, other: &OriginValue) -> bool
fn eq(&self, other: &OriginValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for OriginValue
Auto Trait Implementations§
impl Freeze for OriginValue
impl RefUnwindSafe for OriginValue
impl Send for OriginValue
impl Sync for OriginValue
impl Unpin for OriginValue
impl UnwindSafe for OriginValue
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more