pub struct Transaction<N, K, L, W, WV, A, AV>{
pub mode: TransactionMode,
pub id: Option<Uuid>,
pub name: Option<N>,
pub kind: Option<K>,
pub labels: Option<BTreeSet<L>>,
pub weights: Option<BTreeMap<W, WV>>,
pub annotations: Option<BTreeMap<A, AV>>,
}Expand description
Transaction to apply to a MetadataStore.
Fields§
§mode: TransactionModeTransaction mode.
id: Option<Uuid>Instance identifier.
name: Option<N>Name associated with this instance.
kind: Option<K>Kind of object or main category associated with this instance.
labels: Option<BTreeSet<L>>Set of labels associated with this instance.
weights: Option<BTreeMap<W, WV>>Numerical weights associated with this instance.
annotations: Option<BTreeMap<A, AV>>Free-form annotations associated with this instance.
Implementations§
Source§impl<N, K, L, W, WV, A, AV> Transaction<N, K, L, W, WV, A, AV>
impl<N, K, L, W, WV, A, AV> Transaction<N, K, L, W, WV, A, AV>
Sourcepub fn builder() -> TransactionBuilder<N, K, L, W, WV, A, AV>
pub fn builder() -> TransactionBuilder<N, K, L, W, WV, A, AV>
Create an instance of Transaction using the builder syntax
Source§impl<N, K, L, W, WV, A, AV> Transaction<N, K, L, W, WV, A, AV>
impl<N, K, L, W, WV, A, AV> Transaction<N, K, L, W, WV, A, AV>
Trait Implementations§
Source§impl<N, K, L, W, WV, A, AV> Clone for Transaction<N, K, L, W, WV, A, AV>
impl<N, K, L, W, WV, A, AV> Clone for Transaction<N, K, L, W, WV, A, AV>
Source§fn clone(&self) -> Transaction<N, K, L, W, WV, A, AV>
fn clone(&self) -> Transaction<N, K, L, W, WV, A, AV>
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<N, K, L, W, WV, A, AV> Debug for Transaction<N, K, L, W, WV, A, AV>
impl<N, K, L, W, WV, A, AV> Debug for Transaction<N, K, L, W, WV, A, AV>
Source§impl<N, K, L, W, WV, A, AV> Default for Transaction<N, K, L, W, WV, A, AV>
impl<N, K, L, W, WV, A, AV> Default for Transaction<N, K, L, W, WV, A, AV>
Source§impl<'de, N, K, L, W, WV, A, AV> Deserialize<'de> for Transaction<N, K, L, W, WV, A, AV>where
N: Field + Deserialize<'de>,
K: Field + Deserialize<'de>,
L: Field + Deserialize<'de>,
W: Field + Deserialize<'de>,
WV: WeightValue + Deserialize<'de>,
A: Field + Deserialize<'de>,
AV: AnnotationValue + Deserialize<'de>,
Transaction<N, K, L, W, WV, A, AV>: Default,
impl<'de, N, K, L, W, WV, A, AV> Deserialize<'de> for Transaction<N, K, L, W, WV, A, AV>where
N: Field + Deserialize<'de>,
K: Field + Deserialize<'de>,
L: Field + Deserialize<'de>,
W: Field + Deserialize<'de>,
WV: WeightValue + Deserialize<'de>,
A: Field + Deserialize<'de>,
AV: AnnotationValue + Deserialize<'de>,
Transaction<N, K, L, W, WV, A, AV>: Default,
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
Source§impl<N, K, L, W, WV, A, AV> PartialEq for Transaction<N, K, L, W, WV, A, AV>
impl<N, K, L, W, WV, A, AV> PartialEq for Transaction<N, K, L, W, WV, A, AV>
Source§fn eq(&self, other: &Transaction<N, K, L, W, WV, A, AV>) -> bool
fn eq(&self, other: &Transaction<N, K, L, W, WV, A, AV>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<N, K, L, W, WV, A, AV> Serialize for Transaction<N, K, L, W, WV, A, AV>
impl<N, K, L, W, WV, A, AV> Serialize for Transaction<N, K, L, W, WV, A, AV>
impl<N, K, L, W, WV, A, AV> StructuralPartialEq for Transaction<N, K, L, W, WV, A, AV>
Auto Trait Implementations§
impl<N, K, L, W, WV, A, AV> Freeze for Transaction<N, K, L, W, WV, A, AV>
impl<N, K, L, W, WV, A, AV> RefUnwindSafe for Transaction<N, K, L, W, WV, A, AV>where
N: RefUnwindSafe,
K: RefUnwindSafe,
W: RefUnwindSafe,
WV: RefUnwindSafe,
A: RefUnwindSafe,
AV: RefUnwindSafe,
L: RefUnwindSafe,
impl<N, K, L, W, WV, A, AV> Send for Transaction<N, K, L, W, WV, A, AV>
impl<N, K, L, W, WV, A, AV> Sync for Transaction<N, K, L, W, WV, A, AV>
impl<N, K, L, W, WV, A, AV> Unpin for Transaction<N, K, L, W, WV, A, AV>
impl<N, K, L, W, WV, A, AV> UnsafeUnpin for Transaction<N, K, L, W, WV, A, AV>where
N: UnsafeUnpin,
K: UnsafeUnpin,
impl<N, K, L, W, WV, A, AV> UnwindSafe for Transaction<N, K, L, W, WV, A, AV>where
N: UnwindSafe,
K: UnwindSafe,
W: RefUnwindSafe,
WV: RefUnwindSafe,
A: RefUnwindSafe,
AV: RefUnwindSafe,
L: RefUnwindSafe,
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