pub enum WriteSupport {
Supported,
Unsupported,
}Expand description
Whether a source can be written through at all.
Deliberately its own enum rather than a reuse of Support: that one
says whether a source applies a predicate itself, and the engine compensates for an
Unsupported there by narrowing a wider result. There is no compensating for a
destination that cannot be written — the copy is refused, naming the source and the
plugin behind it — so conflating the two would invite an engine-side workaround for a
case that has none.
Variants§
Supported
The source creates and updates items through its own write interface.
Unsupported
The source has no write side; a copy naming it as a destination is refused.
Implementations§
Source§impl WriteSupport
impl WriteSupport
Sourcepub fn is_supported(self) -> bool
pub fn is_supported(self) -> bool
Whether this source can be written through.
Trait Implementations§
Source§impl Clone for WriteSupport
impl Clone for WriteSupport
Source§fn clone(&self) -> WriteSupport
fn clone(&self) -> WriteSupport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WriteSupport
Source§impl Debug for WriteSupport
impl Debug for WriteSupport
Source§impl<'de> Deserialize<'de> for WriteSupport
impl<'de> Deserialize<'de> for WriteSupport
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
impl Eq for WriteSupport
Source§impl Hash for WriteSupport
impl Hash for WriteSupport
Source§impl JsonSchema for WriteSupport
impl JsonSchema for WriteSupport
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 PartialEq for WriteSupport
impl PartialEq for WriteSupport
Source§impl Serialize for WriteSupport
impl Serialize for WriteSupport
impl StructuralPartialEq for WriteSupport
Auto Trait Implementations§
impl Freeze for WriteSupport
impl RefUnwindSafe for WriteSupport
impl Send for WriteSupport
impl Sync for WriteSupport
impl Unpin for WriteSupport
impl UnsafeUnpin for WriteSupport
impl UnwindSafe for WriteSupport
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