Skip to main content

notedthat_write/
lib.rs

1//! Shared write path for `NotedThat` protocol surfaces.
2
3use notedthat_core::PutOutcome;
4
5mod commit;
6mod error;
7mod manifest;
8mod mime;
9pub mod patch;
10pub mod replace;
11mod sinks;
12
13pub use commit::{MAX_UPLOAD_BYTES, check_size, commit, commit_copy, commit_delete};
14pub use error::{WriteEffect, WriteError};
15pub use manifest::MANIFEST_MAX_BYTES;
16pub use mime::sniff_content_type;
17pub use patch::{PatchMode, patch};
18pub use replace::{ReplaceRequest, replace};
19pub use sinks::WriteSinks;
20
21/// Outcome of a replace write operation.
22pub struct ReplaceOutcome {
23    /// Result of storing the replaced object body.
24    pub put_outcome: PutOutcome,
25    /// Number of old-string matches found in the original object body.
26    pub match_count: u64,
27}