pub struct CollectionManagementSettings {
pub limit_collection_creation: bool,
pub limit_collection_deletion: bool,
pub limit_item_deletion: bool,
pub allow_admin_access_to_all_collection_items: bool,
}Expand description
Admin-configured settings controlling who can create, delete, and manage collections and items.
Fields§
§limit_collection_creation: boolWhether collection creation is restricted to owners and admins only.
When false, any member can create collections and automatically receives manage
permissions over collections they create.
limit_collection_deletion: boolWhether collection deletion is restricted to owners and admins only.
When true, regular users cannot delete collections that they manage.
limit_item_deletion: boolWhether item deletion is restricted to members with the Manage collection permission.
When false, members with Edit permission can also delete items within their collections.
allow_admin_access_to_all_collection_items: boolWhether owners and admins have implicit manage permissions over all collections.
When true, owners and admins can alter items, groups, and permissions across all
collections without requiring explicit collection assignments.
When false, admins can only access collections where they have been explicitly assigned.
Trait Implementations§
Source§impl Clone for CollectionManagementSettings
impl Clone for CollectionManagementSettings
Source§fn clone(&self) -> CollectionManagementSettings
fn clone(&self) -> CollectionManagementSettings
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<UT> ConvertError<UT> for CollectionManagementSettings
impl<UT> ConvertError<UT> for CollectionManagementSettings
fn try_convert_unexpected_callback_error( e: UnexpectedUniFFICallbackError, ) -> Result<Self>
Source§impl Debug for CollectionManagementSettings
impl Debug for CollectionManagementSettings
Source§impl Default for CollectionManagementSettings
impl Default for CollectionManagementSettings
Source§fn default() -> CollectionManagementSettings
fn default() -> CollectionManagementSettings
Source§impl<'de> Deserialize<'de> for CollectionManagementSettings
impl<'de> Deserialize<'de> for CollectionManagementSettings
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<UT> FfiConverter<UT> for CollectionManagementSettings
impl<UT> FfiConverter<UT> for CollectionManagementSettings
Source§const TYPE_ID_META: MetadataBuffer
const TYPE_ID_META: MetadataBuffer
Source§type FfiType = RustBuffer
type FfiType = RustBuffer
Source§fn lower(v: Self) -> RustBuffer
fn lower(v: Self) -> RustBuffer
Source§fn try_lift(buf: RustBuffer) -> Result<Self>
fn try_lift(buf: RustBuffer) -> Result<Self>
Source§impl From<CollectionManagementSettings> for JsValue
impl From<CollectionManagementSettings> for JsValue
Source§fn from(value: CollectionManagementSettings) -> Self
fn from(value: CollectionManagementSettings) -> Self
Source§impl FromWasmAbi for CollectionManagementSettingswhere
Self: DeserializeOwned,
impl FromWasmAbi for CollectionManagementSettingswhere
Self: DeserializeOwned,
Source§impl<UT> Lift<UT> for CollectionManagementSettings
impl<UT> Lift<UT> for CollectionManagementSettings
Source§impl<UT> LiftRef<UT> for CollectionManagementSettings
impl<UT> LiftRef<UT> for CollectionManagementSettings
Source§impl<UT> LiftReturn<UT> for CollectionManagementSettings
impl<UT> LiftReturn<UT> for CollectionManagementSettings
Source§type ReturnType = <CollectionManagementSettings as Lift<UT>>::FfiType
type ReturnType = <CollectionManagementSettings as Lift<UT>>::FfiType
Source§fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
§fn lift_foreign_return(
ffi_return: Self::ReturnType,
call_status: RustCallStatus,
) -> Self
fn lift_foreign_return( ffi_return: Self::ReturnType, call_status: RustCallStatus, ) -> Self
§fn lift_error(_buf: RustBuffer) -> Self
fn lift_error(_buf: RustBuffer) -> Self
§fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
Source§impl<UT> Lower<UT> for CollectionManagementSettings
impl<UT> Lower<UT> for CollectionManagementSettings
Source§impl<UT> LowerError<UT> for CollectionManagementSettings
impl<UT> LowerError<UT> for CollectionManagementSettings
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Source§impl<UT> LowerReturn<UT> for CollectionManagementSettings
impl<UT> LowerReturn<UT> for CollectionManagementSettings
Source§type ReturnType = <CollectionManagementSettings as Lower<UT>>::FfiType
type ReturnType = <CollectionManagementSettings as Lower<UT>>::FfiType
Source§fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>
fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>
§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Source§impl OptionFromWasmAbi for CollectionManagementSettingswhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for CollectionManagementSettingswhere
Self: DeserializeOwned,
Source§impl RefFromWasmAbi for CollectionManagementSettingswhere
Self: DeserializeOwned,
impl RefFromWasmAbi for CollectionManagementSettingswhere
Self: DeserializeOwned,
Source§type Abi = <JsType as RefFromWasmAbi>::Abi
type Abi = <JsType as RefFromWasmAbi>::Abi
Self are recovered from.Source§type Anchor = SelfOwner<CollectionManagementSettings>
type Anchor = SelfOwner<CollectionManagementSettings>
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.impl StructuralPartialEq for CollectionManagementSettings
Source§impl Tsify for CollectionManagementSettings
impl Tsify for CollectionManagementSettings
const DECL: &'static str = "/**\n * Admin-configured settings controlling who can create, delete, and manage collections and\n * items.\n */\nexport interface CollectionManagementSettings {\n /**\n * Whether collection creation is restricted to owners and admins only.\n *\n * When `false`, any member can create collections and automatically receives manage\n * permissions over collections they create.\n */\n limitCollectionCreation: boolean;\n /**\n * Whether collection deletion is restricted to owners and admins only.\n *\n * When `true`, regular users cannot delete collections that they manage.\n */\n limitCollectionDeletion: boolean;\n /**\n * Whether item deletion is restricted to members with the Manage collection permission.\n *\n * When `false`, members with Edit permission can also delete items within their collections.\n */\n limitItemDeletion: boolean;\n /**\n * Whether owners and admins have implicit manage permissions over all collections.\n *\n * When `true`, owners and admins can alter items, groups, and permissions across all\n * collections without requiring explicit collection assignments.\n * When `false`, admins can only access collections where they have been explicitly assigned.\n */\n allowAdminAccessToAllCollectionItems: boolean;\n}"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Source§impl<UT> TypeId<UT> for CollectionManagementSettings
impl<UT> TypeId<UT> for CollectionManagementSettings
const TYPE_ID_META: MetadataBuffer
Source§impl VectorFromWasmAbi for CollectionManagementSettingswhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for CollectionManagementSettingswhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for CollectionManagementSettings
impl VectorIntoWasmAbi for CollectionManagementSettings
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Auto Trait Implementations§
impl Freeze for CollectionManagementSettings
impl RefUnwindSafe for CollectionManagementSettings
impl Send for CollectionManagementSettings
impl Sync for CollectionManagementSettings
impl Unpin for CollectionManagementSettings
impl UnsafeUnpin for CollectionManagementSettings
impl UnwindSafe for CollectionManagementSettings
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreimpl<T> Persist for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.