pub enum CopyResource {
Copy(Copy),
Content(CopyContent),
AddGitRepo(AddGitRepo),
Add(Add),
}
Variants§
Trait Implementations§
Source§impl Clone for CopyResource
impl Clone for CopyResource
Source§fn clone(&self) -> CopyResource
fn clone(&self) -> CopyResource
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CopyResource
impl Debug for CopyResource
Source§impl From<CopyResourcePatch> for CopyResource
impl From<CopyResourcePatch> for CopyResource
Source§fn from(patch: CopyResourcePatch) -> Self
fn from(patch: CopyResourcePatch) -> Self
Converts to this type from the input type.
Source§impl From<ParsableStruct<CopyResourcePatch>> for CopyResource
impl From<ParsableStruct<CopyResourcePatch>> for CopyResource
Source§fn from(value: ParsableStruct<CopyResourcePatch>) -> Self
fn from(value: ParsableStruct<CopyResourcePatch>) -> Self
Converts to this type from the input type.
Source§impl Lock for CopyResource
impl Lock for CopyResource
fn lock(&self, context: &mut DofigenContext) -> Result<Self>
Source§impl PartialEq for CopyResource
impl PartialEq for CopyResource
Source§impl Patch<CopyResourcePatch> for CopyResource
impl Patch<CopyResourcePatch> for CopyResource
Source§fn apply(&mut self, patch: CopyResourcePatch)
fn apply(&mut self, patch: CopyResourcePatch)
Apply a patch
Source§fn into_patch(self) -> CopyResourcePatch
fn into_patch(self) -> CopyResourcePatch
Returns a patch that when applied turns any struct of the same type into
Self
Source§fn into_patch_by_diff(self, previous_struct: Self) -> CopyResourcePatch
fn into_patch_by_diff(self, previous_struct: Self) -> CopyResourcePatch
Returns a patch that when applied turns
previous_struct
into Self
Source§fn new_empty_patch() -> CopyResourcePatch
fn new_empty_patch() -> CopyResourcePatch
Get an empty patch instance
Source§impl Patch<ParsableStruct<CopyResourcePatch>> for CopyResource
impl Patch<ParsableStruct<CopyResourcePatch>> for CopyResource
Source§fn apply(&mut self, patch: ParsableStruct<CopyResourcePatch>)
fn apply(&mut self, patch: ParsableStruct<CopyResourcePatch>)
Apply a patch
Source§fn into_patch(self) -> ParsableStruct<CopyResourcePatch>
fn into_patch(self) -> ParsableStruct<CopyResourcePatch>
Returns a patch that when applied turns any struct of the same type into
Self
Source§fn into_patch_by_diff(
self,
previous_struct: Self,
) -> ParsableStruct<CopyResourcePatch>
fn into_patch_by_diff( self, previous_struct: Self, ) -> ParsableStruct<CopyResourcePatch>
Returns a patch that when applied turns
previous_struct
into Self
Source§fn new_empty_patch() -> ParsableStruct<CopyResourcePatch>
fn new_empty_patch() -> ParsableStruct<CopyResourcePatch>
Get an empty patch instance
Source§impl Serialize for CopyResource
impl Serialize for CopyResource
impl StructuralPartialEq for CopyResource
Auto Trait Implementations§
impl Freeze for CopyResource
impl RefUnwindSafe for CopyResource
impl Send for CopyResource
impl Sync for CopyResource
impl Unpin for CopyResource
impl UnwindSafe for CopyResource
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