Struct PermissionMarkers<TLinkAddress>
- Namespace
- Foundation.Data.Doublets.Cli
- Assembly
- Foundation.Data.Doublets.Cli.dll
The four points of the data permission rules are made of: the markers
AllowRead, AllowWrite and AllowReference of rules and
Anything, which matches every subject or every link.
public readonly record struct PermissionMarkers<TLinkAddress> : IEquatable<PermissionMarkers<TLinkAddress>> where TLinkAddress : struct, IUnsignedNumber<TLinkAddress>
Type Parameters
TLinkAddress
- Implements
-
IEquatable<PermissionMarkers<TLinkAddress>>
- Inherited Members
Constructors
PermissionMarkers(TLinkAddress, TLinkAddress, TLinkAddress, TLinkAddress)
The four points of the data permission rules are made of: the markers
AllowRead, AllowWrite and AllowReference of rules and
Anything, which matches every subject or every link.
public PermissionMarkers(TLinkAddress AllowRead, TLinkAddress AllowWrite, TLinkAddress Anything, TLinkAddress AllowReference)
Parameters
AllowReadTLinkAddressAllowWriteTLinkAddressAnythingTLinkAddressAllowReferenceTLinkAddress
Fields
AllowReadName
The name of the marker of read rules.
public const string AllowReadName = "AllowRead"
Field Value
AllowReferenceName
The name of the marker of reference rules.
public const string AllowReferenceName = "AllowReference"
Field Value
AllowWriteName
The name of the marker of write rules.
public const string AllowWriteName = "AllowWrite"
Field Value
AnythingName
The name of the marker that matches every subject or link.
public const string AnythingName = "Anything"
Field Value
Properties
AllowRead
public TLinkAddress AllowRead { get; init; }
Property Value
- TLinkAddress
AllowReference
public TLinkAddress AllowReference { get; init; }
Property Value
- TLinkAddress
AllowWrite
public TLinkAddress AllowWrite { get; init; }
Property Value
- TLinkAddress
Anything
public TLinkAddress Anything { get; init; }
Property Value
- TLinkAddress
Methods
Of(PermissionAccess)
The marker of the rules of access.
public TLinkAddress Of(PermissionAccess access)
Parameters
accessPermissionAccess
Returns
- TLinkAddress