pub enum ControlSelector {
Name(String),
Id {
id: String,
},
Tag {
tag: String,
},
Alias {
alias: String,
},
}Expand description
Which content control to fill; every form must match exactly one.
Variants§
Name(String)
"p3.cc0" or "cc1", the same as {"id": "p3.cc0"}.
Id
{"id": "p3.cc0"}.
Tag
{"tag": "Name"}: the control’s w:tag.
Alias
{"alias": "Full name"}: the control’s w:alias (its title).
Trait Implementations§
Source§impl Clone for ControlSelector
impl Clone for ControlSelector
Source§fn clone(&self) -> ControlSelector
fn clone(&self) -> ControlSelector
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 moreSource§impl Debug for ControlSelector
impl Debug for ControlSelector
Source§impl<'de> Deserialize<'de> for ControlSelector
impl<'de> Deserialize<'de> for ControlSelector
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ControlSelector, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ControlSelector, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ControlSelector
Source§impl JsonSchema for ControlSelector
impl JsonSchema for ControlSelector
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 ControlSelector
impl PartialEq for ControlSelector
Source§impl Serialize for ControlSelector
impl Serialize for ControlSelector
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ControlSelector
Auto Trait Implementations§
impl Forget for ControlSelector
impl Freeze for ControlSelector
impl Move for ControlSelector
impl RefUnwindSafe for ControlSelector
impl Send for ControlSelector
impl Sync for ControlSelector
impl Unpin for ControlSelector
impl UnsafeUnpin for ControlSelector
impl UnwindSafe for ControlSelector
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.