pub struct ContentControl {
pub id: String,
pub tag: Option<String>,
pub alias: Option<String>,
pub kind: String,
pub text: String,
pub paragraph_ids: Vec<String>,
pub locked: bool,
pub choices: Vec<String>,
pub checked: Option<bool>,
pub placeholder: bool,
}Expand description
A content control (w:sdt) in the body, in document order. Controls
inside text boxes are not listed.
Fields§
§id: StringccN for a block control, pN.ccK for one in paragraph pN.
tag: Option<String>w:tag.
alias: Option<String>w:alias, the title Word shows.
kind: Stringtext, rich_text, drop_down, combo_box, date, checkbox,
picture, group, repeating, building_block, citation,
bibliography, equation, unknown. A control whose properties
name no type is rich_text, as in Word.
text: StringVisible text of the control’s content; paragraphs joined by \n.
paragraph_ids: Vec<String>Paragraphs the control spans (pN); a run-level control lists
the paragraph that holds it.
locked: boolw:lock is contentLocked or sdtContentLocked.
choices: Vec<String>Drop-down and combo-box choices (w:listItem/@w:value, or the
display text when an item has no value).
checked: Option<bool>Checkbox state (w14:checked).
placeholder: boolw:showingPlcHdr is set: the text is placeholder text.
Trait Implementations§
Source§impl Clone for ContentControl
impl Clone for ContentControl
Source§fn clone(&self) -> ContentControl
fn clone(&self) -> ContentControl
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ContentControl
impl Debug for ContentControl
impl Eq for ContentControl
Source§impl PartialEq for ContentControl
impl PartialEq for ContentControl
Source§impl Serialize for ContentControl
impl Serialize for ContentControl
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,
impl StructuralPartialEq for ContentControl
Auto Trait Implementations§
impl Forget for ContentControl
impl Freeze for ContentControl
impl Move for ContentControl
impl RefUnwindSafe for ContentControl
impl Send for ContentControl
impl Sync for ContentControl
impl Unpin for ContentControl
impl UnsafeUnpin for ContentControl
impl UnwindSafe for ContentControl
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
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,
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
key and return true if they are equal.