pub struct CopyContentPatch {
pub content: Option<String>,
pub substitute: Option<Option<bool>>,
pub options: Option<CopyOptionsPatch>,
}Fields§
§content: Option<String>§substitute: Option<Option<bool>>§options: Option<CopyOptionsPatch>Trait Implementations§
Source§impl Clone for CopyContentPatch
impl Clone for CopyContentPatch
Source§fn clone(&self) -> CopyContentPatch
fn clone(&self) -> CopyContentPatch
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CopyContentPatch
impl Debug for CopyContentPatch
Source§impl Default for CopyContentPatch
impl Default for CopyContentPatch
Source§fn default() -> CopyContentPatch
fn default() -> CopyContentPatch
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CopyContentPatchwhere
CopyContentPatch: Default,
impl<'de> Deserialize<'de> for CopyContentPatchwhere
CopyContentPatch: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<CopyContentPatch> for CopyContent
impl From<CopyContentPatch> for CopyContent
Source§fn from(value: CopyContentPatch) -> Self
fn from(value: CopyContentPatch) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for CopyContentPatch
impl JsonSchema for CopyContentPatch
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for CopyContentPatch
impl PartialEq for CopyContentPatch
Source§impl Patch<CopyContentPatch> for CopyContent
impl Patch<CopyContentPatch> for CopyContent
Source§fn apply(&mut self, patch: CopyContentPatch)
fn apply(&mut self, patch: CopyContentPatch)
Apply a patch
Source§fn into_patch(self) -> CopyContentPatch
fn into_patch(self) -> CopyContentPatch
Returns a patch that when applied turns any struct of the same type into
SelfSource§fn into_patch_by_diff(self, previous_struct: Self) -> CopyContentPatch
fn into_patch_by_diff(self, previous_struct: Self) -> CopyContentPatch
Returns a patch that when applied turns
previous_struct into SelfSource§fn new_empty_patch() -> CopyContentPatch
fn new_empty_patch() -> CopyContentPatch
Get an empty patch instance
impl StructuralPartialEq for CopyContentPatch
Auto Trait Implementations§
impl Freeze for CopyContentPatch
impl RefUnwindSafe for CopyContentPatch
impl Send for CopyContentPatch
impl Sync for CopyContentPatch
impl Unpin for CopyContentPatch
impl UnwindSafe for CopyContentPatch
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