TextObj

Trait TextObj 

Source
pub trait TextObj {
    // Required methods
    fn build(
        id: &str,
        header: impl Into<String>,
        value: impl Into<String>,
    ) -> NamedObjectBuilder<TextDescContent, TextContent>;
    fn create(
        id: &str,
        header: impl Into<String>,
        value: impl Into<String>,
    ) -> Self;
    fn id(&self) -> &str;
    fn header(&self) -> &str;
    fn header_mut(&mut self) -> &mut String;
    fn value(&self) -> &str;
    fn value_mut(&mut self) -> &mut String;
    fn into_header(self) -> String;
    fn into_value(self) -> String;
    fn text_id(&self) -> TextId;
}

Required Methods§

Source

fn build( id: &str, header: impl Into<String>, value: impl Into<String>, ) -> NamedObjectBuilder<TextDescContent, TextContent>

Source

fn create(id: &str, header: impl Into<String>, value: impl Into<String>) -> Self

Source

fn id(&self) -> &str

Source

fn header(&self) -> &str

Source

fn header_mut(&mut self) -> &mut String

Source

fn value(&self) -> &str

Source

fn value_mut(&mut self) -> &mut String

Source

fn into_header(self) -> String

Source

fn into_value(self) -> String

Source

fn text_id(&self) -> TextId

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§