Skip to content

Commit 03e3dbd

Browse files
committed
Add docs
1 parent e6cbfb5 commit 03e3dbd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/bitwarden-crypto/src/security_state.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ export type SignedSecurityState = string;
4545
#[derive(Serialize, Deserialize)]
4646
#[serde(rename_all = "camelCase")]
4747
pub struct SecurityState {
48+
/// The entity ID is a permanent, unchangeable, unique identifier for the object this security state applies to.
49+
/// For users, this is the user ID, which never changes.
4850
entity_id: ByteBuf,
51+
/// The version of the security state gates feature availability. It can only ever be incremented. Components can use
52+
/// it to gate format support of specific formats (like item url hashes).
4953
version: u64,
5054
}
5155

0 commit comments

Comments
 (0)