pub struct ObjectWriteIntentV1 {
pub intent_id: String,
pub installation_id: String,
pub object_key: String,
pub envelope: Vec<u8>,
}Expand description
Bounded immutable materialization intent, scoped to an installation.
Fields§
§intent_id: StringOpaque idempotency identity, 1..=128 safe identifier bytes.
installation_id: StringInstallation allowed to replay this intent.
object_key: StringOpaque tenant-scoped object key; never an unchecked filesystem path.
envelope: Vec<u8>Opaque envelope bytes, at most 1 MiB. Deployment authenticates them.
Implementations§
Source§impl ObjectWriteIntentV1
impl ObjectWriteIntentV1
Sourcepub fn validate(&self) -> SqliteSyncResult<()>
pub fn validate(&self) -> SqliteSyncResult<()>
Checks identity and payload limits without interpreting document content.
Sourcepub fn envelope_sha256(&self) -> String
pub fn envelope_sha256(&self) -> String
Digest of opaque envelope bytes. Prefer encrypted envelopes; never export predictable plaintext digests as diagnostics or treat them as authentication.
Trait Implementations§
Source§impl Clone for ObjectWriteIntentV1
impl Clone for ObjectWriteIntentV1
Source§impl Debug for ObjectWriteIntentV1
impl Debug for ObjectWriteIntentV1
impl Eq for ObjectWriteIntentV1
Source§impl PartialEq for ObjectWriteIntentV1
impl PartialEq for ObjectWriteIntentV1
impl StructuralPartialEq for ObjectWriteIntentV1
Auto Trait Implementations§
impl Forget for ObjectWriteIntentV1
impl Freeze for ObjectWriteIntentV1
impl Move for ObjectWriteIntentV1
impl RefUnwindSafe for ObjectWriteIntentV1
impl Send for ObjectWriteIntentV1
impl Sync for ObjectWriteIntentV1
impl Unpin for ObjectWriteIntentV1
impl UnsafeUnpin for ObjectWriteIntentV1
impl UnwindSafe for ObjectWriteIntentV1
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