pub enum WriteEvent {
CreateVault(Vec<u8>),
SetVaultName(String),
SetVaultFlags(VaultFlags),
SetVaultMeta(AeadPack),
CreateSecret(Uuid, VaultCommit),
UpdateSecret(Uuid, VaultCommit),
DeleteSecret(Uuid),
// some variants omitted
}Expand description
Write operations.
Variants§
CreateVault(Vec<u8>)
Event used to indicate a vault was created.
The buffer is the initial state of the vault, if the vault contains secrets they should be separated using an FolderReducer::split beforehand and appended to the event log as create secret events.
SetVaultName(String)
Event used to indicate the vault name was set.
SetVaultFlags(VaultFlags)
Event used to indicate the vault flags were set.
SetVaultMeta(AeadPack)
Event used to indicate the vault meta data was set.
CreateSecret(Uuid, VaultCommit)
Event used to indicate a secret was created.
UpdateSecret(Uuid, VaultCommit)
Event used to indicate a secret was updated.
DeleteSecret(Uuid)
Event used to indicate a secret was deleted.
Trait Implementations§
Source§impl Clone for WriteEvent
impl Clone for WriteEvent
Source§fn clone(&self) -> WriteEvent
fn clone(&self) -> WriteEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WriteEvent
impl Debug for WriteEvent
Source§impl Decodable for WriteEvent
impl Decodable for WriteEvent
Source§fn decode<'life0, 'life1, 'async_trait, R>(
&'life0 mut self,
reader: &'life1 mut BinaryReader<R>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
R: 'async_trait + AsyncRead + AsyncSeek + Unpin + Send,
WriteEvent: 'async_trait,
fn decode<'life0, 'life1, 'async_trait, R>(
&'life0 mut self,
reader: &'life1 mut BinaryReader<R>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
R: 'async_trait + AsyncRead + AsyncSeek + Unpin + Send,
WriteEvent: 'async_trait,
Decode from the binary reader into self.
Source§impl Default for WriteEvent
impl Default for WriteEvent
Source§fn default() -> WriteEvent
fn default() -> WriteEvent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WriteEvent
impl<'de> Deserialize<'de> for WriteEvent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<WriteEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<WriteEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Encodable for WriteEvent
impl Encodable for WriteEvent
Source§fn encode<'life0, 'life1, 'async_trait, W>(
&'life0 self,
writer: &'life1 mut BinaryWriter<W>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
W: 'async_trait + AsyncWrite + AsyncSeek + Unpin + Send,
WriteEvent: 'async_trait,
fn encode<'life0, 'life1, 'async_trait, W>(
&'life0 self,
writer: &'life1 mut BinaryWriter<W>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
W: 'async_trait + AsyncWrite + AsyncSeek + Unpin + Send,
WriteEvent: 'async_trait,
Encode self into the binary writer.
Source§impl LogEvent for WriteEvent
impl LogEvent for WriteEvent
Source§fn event_kind(&self) -> EventKind
fn event_kind(&self) -> EventKind
Get the event kind for this event.
Source§impl PartialEq for WriteEvent
impl PartialEq for WriteEvent
Source§impl Serialize for WriteEvent
impl Serialize for WriteEvent
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for WriteEvent
impl StructuralPartialEq for WriteEvent
Auto Trait Implementations§
impl Freeze for WriteEvent
impl RefUnwindSafe for WriteEvent
impl Send for WriteEvent
impl Sync for WriteEvent
impl Unpin for WriteEvent
impl UnwindSafe for WriteEvent
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§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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more