Enum txtai::api::Text [−][src]
Variants
String(String)
Implementations
impl Text
[src]
impl Text
[src]pub fn as_string_mut(&mut self) -> Option<&mut String>
[src]
pub fn as_string_mut(&mut self) -> Option<&mut String>
[src]Optionally returns mutable references to the inner fields if this is a Text::String
, otherwise None
pub fn as_string(&self) -> Option<&String>
[src]
pub fn as_string(&self) -> Option<&String>
[src]Optionally returns references to the inner fields if this is a Text::String
, otherwise None
pub fn into_string(self) -> Result<String, Self>
[src]
pub fn into_string(self) -> Result<String, Self>
[src]Returns the inner fields if this is a Text::String
, otherwise returns back the enum in the Err
case of the result
pub fn as_list_mut(&mut self) -> Option<&mut Vec<String>>
[src]
pub fn as_list_mut(&mut self) -> Option<&mut Vec<String>>
[src]Optionally returns mutable references to the inner fields if this is a Text::List
, otherwise None
Trait Implementations
impl<'de> Deserialize<'de> for Text
[src]
impl<'de> Deserialize<'de> for Text
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Text
impl Send for Text
impl Sync for Text
impl Unpin for Text
impl UnwindSafe for Text
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,