[−][src]Struct trello::CardContents
Fields
name: String
desc: 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]
fn eq(&self, other: &CardContents) -> bool
[src]
fn ne(&self, other: &CardContents) -> bool
[src]
impl StructuralEq for CardContents
[src]
impl StructuralPartialEq for CardContents
[src]
Auto Trait Implementations
impl RefUnwindSafe for CardContents
impl Send for CardContents
impl Sync for CardContents
impl Unpin for CardContents
impl UnwindSafe for CardContents
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<'a, T> TryFrom<&'a str> for T where
T: FromStr,
T: FromStr,
type Err = <T as FromStr>::Err
fn try_from(string: &'a str) -> Result<T, <T as TryFrom<&'a str>>::Err>
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,