pub struct Record { /* private fields */ }Expand description
A bit of data inside of a Vault.
Implementations§
Source§impl Record
impl Record
pub fn new<P: BoxProvider>( key: &Key<P>, id: ChainId, blob: BlobId, data: &[u8], hint: RecordHint, ) -> Result<Record, P::Error>
Sourcepub fn update_meta<P: BoxProvider>(
&mut self,
old_key: &Key<P>,
old_id: ChainId,
new_key: &Key<P>,
new_id: ChainId,
) -> Result<(), RecordError<P::Error>>
pub fn update_meta<P: BoxProvider>( &mut self, old_key: &Key<P>, old_id: ChainId, new_key: &Key<P>, new_id: ChainId, ) -> Result<(), RecordError<P::Error>>
Update the key and id of an existing Record.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Record
impl<'de> Deserialize<'de> for Record
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
Auto Trait Implementations§
impl Freeze for Record
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnwindSafe for Record
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