pub struct MediaIntegrity {
pub content_hash: String,
pub signature: String,
pub public_key: String,
pub capture_id: String,
pub captured_at: String,
}Expand description
Media integrity proof from the device’s Secure Enclave
Fields§
§content_hash: StringSHA-256 hash of the media content (hex string, 64 characters)
signature: StringBase64-encoded ECDSA signature of the signed message
public_key: StringBase64-encoded public key (uncompressed EC point, 65 bytes)
capture_id: StringUUID of the capture session (must match JWT capture_id)
captured_at: StringISO8601 UTC timestamp of when the media was captured
Trait Implementations§
Source§impl Clone for MediaIntegrity
impl Clone for MediaIntegrity
Source§fn clone(&self) -> MediaIntegrity
fn clone(&self) -> MediaIntegrity
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MediaIntegrity
impl Debug for MediaIntegrity
Source§impl<'de> Deserialize<'de> for MediaIntegrity
impl<'de> Deserialize<'de> for MediaIntegrity
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MediaIntegrity
impl RefUnwindSafe for MediaIntegrity
impl Send for MediaIntegrity
impl Sync for MediaIntegrity
impl Unpin for MediaIntegrity
impl UnsafeUnpin for MediaIntegrity
impl UnwindSafe for MediaIntegrity
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more