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 mime;
8pub mod patch;
9pub mod replace;
10mod sinks;
11
12pub use commit::{MAX_UPLOAD_BYTES, check_size, commit, commit_copy, commit_delete};
13pub use error::{WriteEffect, WriteError};
14pub use mime::sniff_content_type;
15pub use patch::{PatchMode, patch};
16pub use replace::{ReplaceRequest, replace};
17pub use sinks::WriteSinks;
18
19/// Outcome of a replace write operation.
20pub struct ReplaceOutcome {
21    /// Result of storing the replaced object body.
22    pub put_outcome: PutOutcome,
23    /// Number of old-string matches found in the original object body.
24    pub match_count: u64,
25}