[][src]Struct trello::CardContents

pub struct CardContents {
    pub name: String,
    pub desc: String,
}

Fields

name: Stringdesc: String

Trait Implementations

impl Debug for CardContents[src]

impl Eq for CardContents[src]

impl FromStr for CardContents[src]

type Err = TrelloError

The associated error which can be returned from parsing.

fn from_str(value: &str) -> Result<CardContents, TrelloError>[src]

Takes a buffer of contents that represent a Card render and parses it into a CardContents structure. This is similar to a deserialization process except this is quite unstructured and is not very strict in order to allow the user to more easily edit card contents.

let buffer = "Hello World\n===\nThis is my card";
let card_contents: trello::CardContents = buffer.parse()?;

assert_eq!(
    card_contents,
    trello::CardContents {
        name: String::from("Hello World"),
        desc: String::from("This is my card"),
    },
);

Invalid data will result in an appropriate error being returned.

impl PartialEq<CardContents> for CardContents[src]

impl StructuralEq for CardContents[src]

impl StructuralPartialEq for CardContents[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<'a, T> TryFrom<&'a str> for T where
    T: FromStr

type Err = <T as FromStr>::Err

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,