pub enum FromContextPatch {
FromImage(ParsableStruct<ImageNamePatch>),
FromBuilder(String),
FromContext(Option<String>),
}
Variants§
Trait Implementations§
Source§impl Clone for FromContextPatch
impl Clone for FromContextPatch
Source§fn clone(&self) -> FromContextPatch
fn clone(&self) -> FromContextPatch
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 FromContextPatch
impl Debug for FromContextPatch
Source§impl Default for FromContextPatch
impl Default for FromContextPatch
Source§impl<'de> Deserialize<'de> for FromContextPatch
impl<'de> Deserialize<'de> for FromContextPatch
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<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 PartialEq for FromContextPatch
impl PartialEq for FromContextPatch
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
impl StructuralPartialEq for FromContextPatch
Auto Trait Implementations§
impl Freeze for FromContextPatch
impl RefUnwindSafe for FromContextPatch
impl Send for FromContextPatch
impl Sync for FromContextPatch
impl Unpin for FromContextPatch
impl UnwindSafe for FromContextPatch
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