pub struct Origin {
pub origin: OriginValue,
pub author: StringValue,
}
Expand description
Defines the origin of the model in the file header.
§Fields
origin
- The origin of the model.author
- The author of the model.
Fields§
§origin: OriginValue
Implementations§
source§impl Origin
impl Origin
sourcepub fn add_origin(&mut self, origin: String) -> Result<(), SurrealError>
pub fn add_origin(&mut self, origin: String) -> Result<(), SurrealError>
Adds an origin to the origin struct.
§Arguments
sourcepub fn from_string(origin: String) -> Result<Self, SurrealError>
pub fn from_string(origin: String) -> Result<Self, SurrealError>
Trait Implementations§
source§impl PartialEq for Origin
impl PartialEq for Origin
impl StructuralPartialEq for Origin
Auto Trait Implementations§
impl Freeze for Origin
impl RefUnwindSafe for Origin
impl Send for Origin
impl Sync for Origin
impl Unpin for Origin
impl UnwindSafe for Origin
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