pub struct BindPatch {
pub target: Option<String>,
pub from: Option<FromContextPatch>,
pub source: Option<Option<String>>,
pub readwrite: Option<Option<bool>>,
}Fields§
§target: Option<String>§from: Option<FromContextPatch>§source: Option<Option<String>>§readwrite: Option<Option<bool>>Trait Implementations§
source§impl<'de> Deserialize<'de> for BindPatch
impl<'de> Deserialize<'de> for BindPatch
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 Patch<BindPatch> for Bind
impl Patch<BindPatch> for Bind
source§fn into_patch(self) -> BindPatch
fn into_patch(self) -> BindPatch
Returns a patch that when applied turns any struct of the same type into
Selfsource§fn into_patch_by_diff(self, previous_struct: Self) -> BindPatch
fn into_patch_by_diff(self, previous_struct: Self) -> BindPatch
Returns a patch that when applied turns
previous_struct into Selfsource§fn new_empty_patch() -> BindPatch
fn new_empty_patch() -> BindPatch
Get an empty patch instance
impl StructuralPartialEq for BindPatch
Auto Trait Implementations§
impl Freeze for BindPatch
impl RefUnwindSafe for BindPatch
impl Send for BindPatch
impl Sync for BindPatch
impl Unpin for BindPatch
impl UnwindSafe for BindPatch
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)