pub enum SubjectMode {
Generated,
Static(Arc<Term>),
}Expand description
Defines the strategy for minting an RDF subject on serialisation
This marker is used by the GraphORMMeta wrapper to indicate the method by which a subject for serialised RDF statements is chosen.
Variants§
Generated
The subject is generated from the designated subject field of the target, probably by calling its GraphORM::rdf_subject method.
Static(Arc<Term>)
The subject is set to a pre-defined value, probably because it is known from a previous deserialisation.
Trait Implementations§
Source§impl Clone for SubjectMode
impl Clone for SubjectMode
Source§fn clone(&self) -> SubjectMode
fn clone(&self) -> SubjectMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SubjectMode
impl Debug for SubjectMode
Source§impl Default for SubjectMode
impl Default for SubjectMode
Source§fn default() -> SubjectMode
fn default() -> SubjectMode
Returns the “default value” for a type. Read more
Source§impl PartialEq for SubjectMode
impl PartialEq for SubjectMode
impl StructuralPartialEq for SubjectMode
Auto Trait Implementations§
impl Freeze for SubjectMode
impl RefUnwindSafe for SubjectMode
impl Send for SubjectMode
impl Sync for SubjectMode
impl Unpin for SubjectMode
impl UnwindSafe for SubjectMode
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