pub struct ProfileKeyRecords {
pub google_ai_studio: Option<EncryptedKeyRecord>,
pub imgbb: Option<EncryptedKeyRecord>,
}Fields§
§google_ai_studio: Option<EncryptedKeyRecord>§imgbb: Option<EncryptedKeyRecord>Implementations§
Source§impl ProfileKeyRecords
impl ProfileKeyRecords
pub fn get(&self, provider: &str) -> Option<&EncryptedKeyRecord>
pub fn insert( &mut self, provider: &str, record: EncryptedKeyRecord, ) -> Result<Option<EncryptedKeyRecord>, &'static str>
pub fn remove(&mut self, provider: &str) -> Option<EncryptedKeyRecord>
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for ProfileKeyRecords
impl Clone for ProfileKeyRecords
Source§fn clone(&self) -> ProfileKeyRecords
fn clone(&self) -> ProfileKeyRecords
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 ProfileKeyRecords
impl Debug for ProfileKeyRecords
Source§impl Default for ProfileKeyRecords
impl Default for ProfileKeyRecords
Source§fn default() -> ProfileKeyRecords
fn default() -> ProfileKeyRecords
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProfileKeyRecords
impl<'de> Deserialize<'de> for ProfileKeyRecords
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
impl Eq for ProfileKeyRecords
Source§impl PartialEq for ProfileKeyRecords
impl PartialEq for ProfileKeyRecords
Source§impl Serialize for ProfileKeyRecords
impl Serialize for ProfileKeyRecords
impl StructuralPartialEq for ProfileKeyRecords
Auto Trait Implementations§
impl Freeze for ProfileKeyRecords
impl RefUnwindSafe for ProfileKeyRecords
impl Send for ProfileKeyRecords
impl Sync for ProfileKeyRecords
impl Unpin for ProfileKeyRecords
impl UnsafeUnpin for ProfileKeyRecords
impl UnwindSafe for ProfileKeyRecords
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