Struct docx_rs::ContentTypes
source · [−]pub struct ContentTypes { /* private fields */ }
Implementations
sourceimpl ContentTypes
impl ContentTypes
pub fn new() -> ContentTypes
pub fn add_content(
self,
path: impl Into<String>,
namespace: impl Into<String>
) -> Self
pub fn set_default(self) -> ContentTypes
pub fn add_taskpanes(self) -> Self
pub fn add_web_extensions(self) -> Self
pub fn add_custom_xml(self) -> Self
pub fn add_header(self) -> Self
Trait Implementations
sourceimpl Clone for ContentTypes
impl Clone for ContentTypes
sourcefn clone(&self) -> ContentTypes
fn clone(&self) -> ContentTypes
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ContentTypes
impl Debug for ContentTypes
sourceimpl Default for ContentTypes
impl Default for ContentTypes
sourceimpl<'de> Deserialize<'de> for ContentTypes
impl<'de> Deserialize<'de> for ContentTypes
sourcefn 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
sourceimpl FromXML for ContentTypes
impl FromXML for ContentTypes
fn from_xml<R: Read>(reader: R) -> Result<Self, ReaderError>
sourceimpl PartialEq<ContentTypes> for ContentTypes
impl PartialEq<ContentTypes> for ContentTypes
sourcefn eq(&self, other: &ContentTypes) -> bool
fn eq(&self, other: &ContentTypes) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serialize for ContentTypes
impl Serialize for ContentTypes
impl StructuralPartialEq for ContentTypes
Auto Trait Implementations
impl RefUnwindSafe for ContentTypes
impl Send for ContentTypes
impl Sync for ContentTypes
impl Unpin for ContentTypes
impl UnwindSafe for ContentTypes
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more