#[non_exhaustive]pub struct DeleteMetadata {
pub content_type: String,
pub headers: Vec<(String, String)>,
}Expand description
Metadata recorded with a delete audit intent.
Adapters that want the deleted representation’s content-type and
metadata headers preserved in the audit log fill this struct; pass
DeleteMetadata::default to record empty metadata. The plain
crate::Engine::delete convenience method always records empty
metadata.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.content_type: StringContent type recorded in the delete audit intent.
headers: Vec<(String, String)>Representation headers recorded in the delete audit intent.
Implementations§
Trait Implementations§
Source§impl Clone for DeleteMetadata
impl Clone for DeleteMetadata
Source§fn clone(&self) -> DeleteMetadata
fn clone(&self) -> DeleteMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for DeleteMetadata
impl Default for DeleteMetadata
Source§fn default() -> DeleteMetadata
fn default() -> DeleteMetadata
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DeleteMetadata
impl RefUnwindSafe for DeleteMetadata
impl Send for DeleteMetadata
impl Sync for DeleteMetadata
impl Unpin for DeleteMetadata
impl UnsafeUnpin for DeleteMetadata
impl UnwindSafe for DeleteMetadata
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