Implements type-based access controls, verifying authorized entities through explicit type assertions.
ChannelConfig
Channel
type for runtime type checks.
ChannelWitnessConfig
ChannelWitness
type for runtime type checks.
GroupWitnessConfig
GroupWitness
type for runtime type checks.
UserOwnedConfig
UserOwned
type for runtime type checks.
UserSharedConfig
UserShared
type for runtime type checks.
UserWitnessConfig
UserWitness
type for runtime type checks.
assert_channel
ETypeMismatch
if the channel
is not of the configured ChannelType
.
assert_channel_witness
EWitnessMismatch
if the channel_witness
is not of the configured ChannelWitnessType
.
assert_group_witness
EWitnessMismatch
if the group_witness
is not of the configured GroupWitnessType
.
assert_owned_user
ETypeMismatch
if the owned_user
is not of the configured UserOwnedType
.
assert_shared_user
ETypeMismatch
if the shared_user
is not of the configured UserSharedType
.
assert_user_witness
EWitnessMismatch
if the user_witness
is not of the configured UserWitnessType
.
verify_channel
channel
is the configured ChannelType
, and false otherwise.
verify_channel_witness
channel_witness
is the configured ChannelWitnessType
, and false otherwise.
verify_group_witness
group_witness
is the configured GroupWitnessType
, and false otherwise.
verify_owned_user
owned_user
is the configured UserOwnedType
, and false otherwise.
verify_shared_user
shared_user
is the configured UserSharedType
, and false otherwise.
verify_user_witness
user_witness
is the configured UserWitnessType
, and false otherwise.