#[non_exhaustive]pub struct TransactionRequest {
pub dataspaces: Vec<String>,
pub read_only: bool,
pub message: String,
}Expand description
What ETP’s StartTransaction asks for.
Built with TransactionRequest::new; #[non_exhaustive].
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.dataspaces: Vec<String>The dataspaces the transaction covers. Empty: the writer’s own.
read_only: boolA transaction that only reads (a consistent view), writing nothing.
message: StringWhat the transaction is for, as the caller words it.
Implementations§
Source§impl TransactionRequest
impl TransactionRequest
Sourcepub fn with_message(self, message: impl Into<String>) -> Self
pub fn with_message(self, message: impl Into<String>) -> Self
With a message.
Sourcepub fn over(
self,
dataspaces: impl IntoIterator<Item = impl Into<String>>,
) -> Self
pub fn over( self, dataspaces: impl IntoIterator<Item = impl Into<String>>, ) -> Self
Over these dataspaces.
Trait Implementations§
Source§impl Clone for TransactionRequest
impl Clone for TransactionRequest
Source§impl Debug for TransactionRequest
impl Debug for TransactionRequest
Source§impl Default for TransactionRequest
impl Default for TransactionRequest
impl Eq for TransactionRequest
Source§impl PartialEq for TransactionRequest
impl PartialEq for TransactionRequest
impl StructuralPartialEq for TransactionRequest
Auto Trait Implementations§
impl Freeze for TransactionRequest
impl RefUnwindSafe for TransactionRequest
impl Send for TransactionRequest
impl Sync for TransactionRequest
impl Unpin for TransactionRequest
impl UnsafeUnpin for TransactionRequest
impl UnwindSafe for TransactionRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.