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