pub enum WriteEvent {
CreateVault(Vec<u8>),
SetVaultName(String),
SetVaultFlags(VaultFlags),
SetVaultMeta(AeadPack),
CreateSecret(SecretId, VaultCommit),
UpdateSecret(SecretId, VaultCommit),
DeleteSecret(SecretId),
// 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(SecretId, VaultCommit)
Event used to indicate a secret was created.
UpdateSecret(SecretId, VaultCommit)
Event used to indicate a secret was updated.
DeleteSecret(SecretId)
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 copy 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 WriteEvent
impl Debug for WriteEvent
Source§impl Decodable for WriteEvent
impl Decodable for WriteEvent
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<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 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<()>> + Send + 'async_trait>>where
W: 'async_trait + AsyncWrite + AsyncSeek + Unpin + Send,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn encode<'life0, 'life1, 'async_trait, W>(
&'life0 self,
writer: &'life1 mut BinaryWriter<W>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
W: 'async_trait + AsyncWrite + AsyncSeek + Unpin + Send,
Self: 'async_trait,
'life0: 'async_trait,
'life1: '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
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