[−][src]Struct secret_service::Collection
Fields
collection_path: Path
Methods
impl<'a> Collection<'a>
[src]
pub fn new(
bus: Rc<Connection>,
session: &'a Session,
collection_path: Path
) -> Self
[src]
bus: Rc<Connection>,
session: &'a Session,
collection_path: Path
) -> Self
pub fn is_locked(&self) -> Result<bool>
[src]
pub fn ensure_unlocked(&self) -> Result<()>
[src]
pub fn unlock(&self) -> Result<()>
[src]
pub fn lock(&self) -> Result<()>
[src]
pub fn delete(&self) -> Result<()>
[src]
Deletes dbus object, but struct instance still exists (current implementation)
pub fn get_all_items(&self) -> Result<Vec<Item>>
[src]
pub fn search_items(&self, attributes: Vec<(&str, &str)>) -> Result<Vec<Item>>
[src]
pub fn get_label(&self) -> Result<String>
[src]
pub fn set_label(&self, new_label: &str) -> Result<()>
[src]
pub fn create_item(
&self,
label: &str,
attributes: Vec<(&str, &str)>,
secret: &[u8],
replace: bool,
content_type: &str
) -> Result<Item>
[src]
&self,
label: &str,
attributes: Vec<(&str, &str)>,
secret: &[u8],
replace: bool,
content_type: &str
) -> Result<Item>
Trait Implementations
impl<'a> Clone for Collection<'a>
[src]
fn clone(&self) -> Collection<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Debug for Collection<'a>
[src]
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Collection<'a>
impl<'a> !Send for Collection<'a>
impl<'a> !Sync for Collection<'a>
impl<'a> Unpin for Collection<'a>
impl<'a> !UnwindSafe for Collection<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,