Skip to content

Commit 54e6401

Browse files
committed
DataModel: Quality discriminants easier to align with the names in the spec
1 parent 062f669 commit 54e6401

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

rs-matter/src/data_model/objects/attribute.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,12 @@ bitflags! {
4040
const READ_PRIVILEGE_MASK = Self::NEED_VIEW.bits | Self::NEED_MANAGE.bits | Self::NEED_OPERATE.bits | Self::NEED_ADMIN.bits;
4141
const WRITE_PRIVILEGE_MASK = Self::NEED_MANAGE.bits | Self::NEED_OPERATE.bits | Self::NEED_ADMIN.bits;
4242
const RV = Self::READ.bits | Self::NEED_VIEW.bits;
43+
const RF = Self::READ.bits | Self::FAB_SCOPED.bits;
44+
const RA = Self::READ.bits | Self::NEED_ADMIN.bits;
4345
const RWVA = Self::READ.bits | Self::WRITE.bits | Self::NEED_VIEW.bits | Self::NEED_ADMIN.bits;
4446
const RWFA = Self::READ.bits | Self::WRITE.bits | Self::FAB_SCOPED.bits | Self::NEED_ADMIN.bits;
4547
const RWVM = Self::READ.bits | Self::WRITE.bits | Self::NEED_VIEW.bits | Self::NEED_MANAGE.bits;
48+
const RWFVM = Self::READ.bits | Self::WRITE.bits | Self::FAB_SCOPED.bits |Self::NEED_VIEW.bits | Self::NEED_MANAGE.bits;
4649
}
4750
}
4851

@@ -79,6 +82,10 @@ bitflags! {
7982
const NULLABLE = 0x08; // Short: X
8083

8184
const SN = Self::SCENE.bits | Self::PERSISTENT.bits;
85+
const S = Self::SCENE.bits;
86+
const N = Self::PERSISTENT.bits;
87+
const F = Self::FIXED.bits;
88+
const X = Self::NULLABLE.bits;
8289
}
8390
}
8491

0 commit comments

Comments
 (0)