pub struct EntryBody {
pub kind: String,
pub label: String,
pub fields: BTreeMap<String, String>,
pub tags: Vec<String>,
pub parts: BTreeMap<String, String>,
pub created_at: i64,
pub updated_at: i64,
pub link_ids: Vec<String>,
}Expand description
An entry as a sync record carries it.
Fields§
§kind: String§label: String§fields: BTreeMap<String, String>§parts: BTreeMap<String, String>The secret parts by name, empty for a link and for an entry backed by AWS Secrets Manager: such an entry is sent as the reference only, and each machine that can reads the secret itself.
created_at: i64§updated_at: i64§link_ids: Vec<String>The entry’s link ids (sync_links): its own first, then its aliases. Empty from a machine that sends none.
Implementations§
Source§impl EntryBody
impl EntryBody
Sourcepub fn of_row(
row: &VaultRow,
parts: &Parts,
profiles: &dyn Profiles,
) -> EntryBody
pub fn of_row( row: &VaultRow, parts: &Parts, profiles: &dyn Profiles, ) -> EntryBody
The body of row, whose parts are parts (opened with this machine’s key by the caller).
Sourcepub fn with_link_ids(self, ids: Vec<String>) -> EntryBody
pub fn with_link_ids(self, ids: Vec<String>) -> EntryBody
This body carrying the entry’s link ids, from super::sync_links::Links::ids.
Sourcepub fn into_row(
&self,
id: &str,
vault_id: &str,
sealed: Vec<u8>,
local: Option<&VaultRow>,
profiles: &dyn Profiles,
) -> VaultRow
pub fn into_row( &self, id: &str, vault_id: &str, sealed: Vec<u8>, local: Option<&VaultRow>, profiles: &dyn Profiles, ) -> VaultRow
The row this body makes on this machine, in the Vault vault_id. sealed is its parts sealed with this
machine’s own key (seal::seal), and local the row it replaces, if there is one: the fields that are this
machine’s own and the time of its last use here stay as they were.
Trait Implementations§
Source§impl Debug for EntryBody
What a log may say of a body: its label and which parts it holds, never a value.
impl Debug for EntryBody
What a log may say of a body: its label and which parts it holds, never a value.
Source§impl<'de> Deserialize<'de> for EntryBody
impl<'de> Deserialize<'de> for EntryBody
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>,
impl StructuralPartialEq for EntryBody
Auto Trait Implementations§
impl Freeze for EntryBody
impl RefUnwindSafe for EntryBody
impl Send for EntryBody
impl Sync for EntryBody
impl Unpin for EntryBody
impl UnsafeUnpin for EntryBody
impl UnwindSafe for EntryBody
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
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> ⓘ
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