Struct Group

Source
pub struct Group {
Show 19 fields pub creation_time: DateTime<Utc>, pub custom_icon_uuid: Option<CustomIconUuid>, pub def_auto_type_sequence: String, pub enable_auto_type: Option<bool>, pub enable_searching: Option<bool>, pub entries: Vec<EntryUuid>, pub expires: bool, pub expiry_time: DateTime<Utc>, pub groups: Vec<GroupUuid>, pub icon: Icon, pub is_expanded: bool, pub last_accessed: DateTime<Utc>, pub last_modified: DateTime<Utc>, pub last_top_visible_entry: EntryUuid, pub location_changed: DateTime<Utc>, pub name: String, pub notes: String, pub usage_count: i32, pub uuid: GroupUuid,
}
Expand description

A group in the database.

Fields§

§creation_time: DateTime<Utc>

The date and time this group was created.

§custom_icon_uuid: Option<CustomIconUuid>

The identifier of this group’s custom icon if any.

§def_auto_type_sequence: String

Default auto-type sequence.

§enable_auto_type: Option<bool>

Whether auto-type is enabled.

§enable_searching: Option<bool>

Whether searching is enabled.

§entries: Vec<EntryUuid>

Vector with entry identifiers that belong to this group.

§expires: bool

Whether this group expires.

§expiry_time: DateTime<Utc>

The date and time this group will expire if expires is true.

§groups: Vec<GroupUuid>

Vector with group identifiers that are subgroups of this group.

§icon: Icon

This group’s icon.

§is_expanded: bool

Whether this group is expanded.

§last_accessed: DateTime<Utc>

The date and time this group was last accessed.

§last_modified: DateTime<Utc>

The date and time this group was last modified.

§last_top_visible_entry: EntryUuid

The identifier of the last top visible entry.

§location_changed: DateTime<Utc>

The date and time the location of this group was changed.

§name: String

The name of this group.

§notes: String

The notes of this group.

§usage_count: i32

The usage count of this group.

§uuid: GroupUuid

The identifier of this group.

Implementations§

Source§

impl Group

Source

pub fn new<S: Into<String>>(name: S) -> Group

Create a new group.

§Examples
use kpdb::Group;

let group = Group::new("Websites");

Trait Implementations§

Source§

impl Clone for Group

Source§

fn clone(&self) -> Group

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Group

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Group

Source§

fn default() -> Group

Returns the “default value” for a type. Read more
Source§

impl PartialEq for Group

Source§

fn eq(&self, other: &Group) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for Group

Auto Trait Implementations§

§

impl Freeze for Group

§

impl RefUnwindSafe for Group

§

impl Send for Group

§

impl Sync for Group

§

impl Unpin for Group

§

impl UnwindSafe for Group

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.