pub struct UnlockedItem { /* private fields */ }Expand description
An item stored in the file backend.
Implementations§
Source§impl UnlockedItem
impl UnlockedItem
Sourcepub fn attributes(&self) -> &HashMap<String, String>
pub fn attributes(&self) -> &HashMap<String, String>
Retrieve the item attributes.
Sourcepub fn set_attributes(&mut self, attributes: &impl AsAttributes)
pub fn set_attributes(&mut self, attributes: &impl AsAttributes)
Update the item attributes.
Sourcepub fn set_secret(&mut self, secret: impl Into<Secret>)
pub fn set_secret(&mut self, secret: impl Into<Secret>)
Store a new secret.
Trait Implementations§
Source§impl Clone for UnlockedItem
impl Clone for UnlockedItem
Source§fn clone(&self) -> UnlockedItem
fn clone(&self) -> UnlockedItem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UnlockedItem
impl Debug for UnlockedItem
Source§impl<'de> Deserialize<'de> for UnlockedItem
impl<'de> Deserialize<'de> for UnlockedItem
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 Drop for UnlockedItem
impl Drop for UnlockedItem
Source§impl From<UnlockedItem> for Item
impl From<UnlockedItem> for Item
Source§fn from(item: UnlockedItem) -> Self
fn from(item: UnlockedItem) -> Self
Converts to this type from the input type.
Source§impl PartialEq for UnlockedItem
impl PartialEq for UnlockedItem
Source§impl Serialize for UnlockedItem
impl Serialize for UnlockedItem
impl StructuralPartialEq for UnlockedItem
Source§impl TryFrom<&[u8]> for UnlockedItem
impl TryFrom<&[u8]> for UnlockedItem
Source§impl Type for UnlockedItem
impl Type for UnlockedItem
Auto Trait Implementations§
impl Freeze for UnlockedItem
impl RefUnwindSafe for UnlockedItem
impl Send for UnlockedItem
impl Sync for UnlockedItem
impl Unpin for UnlockedItem
impl UnsafeUnpin for UnlockedItem
impl UnwindSafe for UnlockedItem
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
§fn deserializer_for_signature(
signature: &Signature,
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
fn deserializer_for_signature( signature: &Signature, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
Get a deserializer compatible with this parsed signature.