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 JsonSchema for BindPatch
impl JsonSchema for BindPatch
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 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