pub enum FromContext {
FromImage(ImageName),
FromBuilder(String),
FromContext(Option<String>),
}
Expand description
Represents a copy origin
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for FromContext
impl Clone for FromContext
Source§fn clone(&self) -> FromContext
fn clone(&self) -> FromContext
Returns a copy 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 FromContext
impl Debug for FromContext
Source§impl Default for FromContext
impl Default for FromContext
Source§impl From<FromContextPatch> for FromContext
impl From<FromContextPatch> for FromContext
Source§fn from(patch: FromContextPatch) -> Self
fn from(patch: FromContextPatch) -> Self
Converts to this type from the input type.
Source§impl From<ImageName> for FromContext
impl From<ImageName> for FromContext
Source§impl Lock for FromContext
impl Lock for FromContext
fn lock(&self, context: &mut DofigenContext) -> Result<Self>
Source§impl PartialEq for FromContext
impl PartialEq for FromContext
Source§impl Patch<FromContextPatch> for FromContext
impl Patch<FromContextPatch> for FromContext
Source§fn apply(&mut self, patch: FromContextPatch)
fn apply(&mut self, patch: FromContextPatch)
Apply a patch
Source§fn into_patch(self) -> FromContextPatch
fn into_patch(self) -> FromContextPatch
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) -> FromContextPatch
fn into_patch_by_diff(self, _previous_struct: Self) -> FromContextPatch
Returns a patch that when applied turns
previous_struct
into Self
Source§fn new_empty_patch() -> FromContextPatch
fn new_empty_patch() -> FromContextPatch
Get an empty patch instance
Source§impl Serialize for FromContext
impl Serialize for FromContext
Source§impl ToString for FromContext
impl ToString for FromContext
impl StructuralPartialEq for FromContext
Auto Trait Implementations§
impl Freeze for FromContext
impl RefUnwindSafe for FromContext
impl Send for FromContext
impl Sync for FromContext
impl Unpin for FromContext
impl UnwindSafe for FromContext
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