notedthat-write 0.12.1

Shared write path (commit, patch, replace) for NotedThat HTTP API and WebDAV surfaces
Documentation
//! Shared write path for `NotedThat` protocol surfaces.

use notedthat_core::PutOutcome;

mod commit;
mod error;
mod manifest;
mod mime;
pub mod patch;
pub mod replace;
mod sinks;

pub use commit::{MAX_UPLOAD_BYTES, check_size, commit, commit_copy, commit_delete};
pub use error::{WriteEffect, WriteError};
pub use manifest::MANIFEST_MAX_BYTES;
pub use mime::sniff_content_type;
pub use patch::{PatchMode, patch};
pub use replace::{ReplaceRequest, replace};
pub use sinks::WriteSinks;

/// Outcome of a replace write operation.
pub struct ReplaceOutcome {
    /// Result of storing the replaced object body.
    pub put_outcome: PutOutcome,
    /// Number of old-string matches found in the original object body.
    pub match_count: u64,
}