pub struct Collection {
pub id: Option<Uuid>,
pub organization_id: Option<Uuid>,
pub name: Option<String>,
pub external_id: Option<String>,
pub creation_date: Option<String>,
pub revision_date: Option<String>,
pub type: Option<CollectionType>,
pub default_user_collection_email: Option<String>,
pub access_rule_id: Option<Uuid>,
}Expand description
Collection : A named grouping of vault items within an organization, used to share items with members and groups. Access is granted to individual members via Bit.Core.Entities.CollectionUser and to groups via Bit.Core.Entities.CollectionGroup.
Fields§
§id: Option<Uuid>A unique identifier for the collection.
organization_id: Option<Uuid>The ID of the Bit.Core.AdminConsole.Entities.Organization that owns this collection.
name: Option<String>The name of the collection, stored encrypted.
external_id: Option<String>An ID used to associate this collection with a record in external services.
creation_date: Option<String>The date the collection was created.
revision_date: Option<String>The date the collection was last updated.
type: Option<CollectionType>§default_user_collection_email: Option<String>Used as the name for the collection if this is a Bit.Core.Enums.CollectionType.DefaultUserCollection of a user who is no longer a member of the organization. In this case, it stores the user’s email address so that it is identifiable by an admin (rather than being called "My Items" for an unknown user). Unencrypted.
access_rule_id: Option<Uuid>Reference to the AccessRule that gates PAM credential leasing for this collection. Null
means leasing is disabled for the collection.
Implementations§
Source§impl Collection
impl Collection
Sourcepub fn new() -> Collection
pub fn new() -> Collection
A named grouping of vault items within an organization, used to share items with members and groups. Access is granted to individual members via Bit.Core.Entities.CollectionUser and to groups via Bit.Core.Entities.CollectionGroup.
Trait Implementations§
Source§impl Clone for Collection
impl Clone for Collection
Source§fn clone(&self) -> Collection
fn clone(&self) -> Collection
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Collection
impl Debug for Collection
Source§impl Default for Collection
impl Default for Collection
Source§fn default() -> Collection
fn default() -> Collection
Source§impl<'de> Deserialize<'de> for Collection
impl<'de> Deserialize<'de> for Collection
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>,
Source§impl PartialEq for Collection
impl PartialEq for Collection
Source§impl Serialize for Collection
impl Serialize for Collection
impl StructuralPartialEq for Collection
Auto Trait Implementations§
impl Freeze for Collection
impl RefUnwindSafe for Collection
impl Send for Collection
impl Sync for Collection
impl Unpin for Collection
impl UnsafeUnpin for Collection
impl UnwindSafe for Collection
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Arc<> Read more