Trait pallet_confidential_docs::pallet::Config
source · pub trait Config: Config {
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
type RemoveOrigin: EnsureOrigin<Self::RuntimeOrigin>;
type MaxOwnedDocs: Get<u32>;
type MaxSharedFromDocs: Get<u32>;
type MaxSharedToDocs: Get<u32>;
type DocNameMinLen: Get<u32>;
type DocNameMaxLen: Get<u32>;
type DocDescMinLen: Get<u32>;
type DocDescMaxLen: Get<u32>;
type GroupNameMinLen: Get<u32>;
type GroupNameMaxLen: Get<u32>;
type MaxMemberGroups: Get<u32>;
}
Expand description
Configuration trait of this pallet.
Implement this type for a runtime in order to customize this pallet.
Required Associated Types§
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
type RemoveOrigin: EnsureOrigin<Self::RuntimeOrigin>
sourcetype MaxOwnedDocs: Get<u32>
type MaxOwnedDocs: Get<u32>
Maximum number of confidential documents that a user can own
Maximum number of confidential documents that a user can share
Maximum number of confidential documents that can be shared to a user
sourcetype DocNameMinLen: Get<u32>
type DocNameMinLen: Get<u32>
Minimum length for a document name
sourcetype DocNameMaxLen: Get<u32>
type DocNameMaxLen: Get<u32>
Maximum length for a document name
sourcetype DocDescMinLen: Get<u32>
type DocDescMinLen: Get<u32>
Minimum length for a document description
sourcetype DocDescMaxLen: Get<u32>
type DocDescMaxLen: Get<u32>
Maximum length for a document description
sourcetype GroupNameMinLen: Get<u32>
type GroupNameMinLen: Get<u32>
Minimum length for a groupName
sourcetype GroupNameMaxLen: Get<u32>
type GroupNameMaxLen: Get<u32>
Maximum length for a groupName
sourcetype MaxMemberGroups: Get<u32>
type MaxMemberGroups: Get<u32>
Maximum groups a user can belong to