pub enum OboPatchOp {
SetName {
term_id: String,
value: String,
},
AddSynonym {
term_id: String,
value: String,
scope: String,
},
RemoveSynonym {
term_id: String,
value: String,
scope: Option<String>,
},
AddDef {
term_id: String,
value: String,
},
RemoveDef {
term_id: String,
},
AddXref {
term_id: String,
xref: String,
},
RemoveXref {
term_id: String,
xref: String,
},
SetNamespace {
term_id: String,
namespace: String,
},
SetDeprecated {
term_id: String,
value: bool,
},
AddIsA {
term_id: String,
parent_id: String,
},
RemoveIsA {
term_id: String,
parent_id: String,
},
}Expand description
OBO patch operation (ADR-0019).
Variants§
SetName
AddSynonym
RemoveSynonym
Fields
AddDef
RemoveDef
AddXref
RemoveXref
SetNamespace
SetDeprecated
AddIsA
RemoveIsA
Trait Implementations§
Source§impl Clone for OboPatchOp
impl Clone for OboPatchOp
Source§fn clone(&self) -> OboPatchOp
fn clone(&self) -> OboPatchOp
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OboPatchOp
impl Debug for OboPatchOp
Source§impl<'de> Deserialize<'de> for OboPatchOp
impl<'de> Deserialize<'de> for OboPatchOp
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for OboPatchOp
Source§impl PartialEq for OboPatchOp
impl PartialEq for OboPatchOp
Source§impl Serialize for OboPatchOp
impl Serialize for OboPatchOp
impl StructuralPartialEq for OboPatchOp
Auto Trait Implementations§
impl Freeze for OboPatchOp
impl RefUnwindSafe for OboPatchOp
impl Send for OboPatchOp
impl Sync for OboPatchOp
impl Unpin for OboPatchOp
impl UnsafeUnpin for OboPatchOp
impl UnwindSafe for OboPatchOp
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