[−][src]Struct trello::List
Fields
id: Stringname: Stringclosed: boolcards: Option<Vec<Card>>Implementations
impl List[src]
pub fn new(id: &str, name: &str, cards: Option<Vec<Card>>) -> List[src]
pub fn filter(&self, label_filter: &str) -> List[src]
Filters cards that match the given label_filter (As a regular expression). Returns a copy of the original List, with the correct filtering applied.
use trello::{Card, Label, List}; let list = List::new( "123", "TODO", Some(vec![ Card::new("1", "Orange", "", Some(vec![Label::new("", "fruit", "")]), ""), Card::new("2", "Green", "", None, ""), ]) ); assert_eq!( list.filter("idontexist"), List::new( "123", "TODO", Some(vec![]), ) ); assert_eq!( list.filter("fruit"), List::new( "123", "TODO", Some(vec![ Card::new("1", "Orange", "", Some(vec![Label::new("", "fruit", "")]), "") ]) ) );
pub fn create(
client: &Client,
board_id: &str,
name: &str
) -> Result<List, TrelloError>[src]
client: &Client,
board_id: &str,
name: &str
) -> Result<List, TrelloError>
pub fn open(client: &Client, list_id: &str) -> Result<List, TrelloError>[src]
pub fn update(client: &Client, list: &List) -> Result<List, TrelloError>[src]
pub fn get_all(
client: &Client,
board_id: &str,
cards: bool
) -> Result<Vec<List>, TrelloError>[src]
client: &Client,
board_id: &str,
cards: bool
) -> Result<Vec<List>, TrelloError>
Trait Implementations
impl Clone for List[src]
impl Debug for List[src]
impl<'de> Deserialize<'de> for List[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Eq for List[src]
impl PartialEq<List> for List[src]
impl Renderable for List[src]
impl StructuralEq for List[src]
impl StructuralPartialEq for List[src]
impl TrelloObject for List[src]
Auto Trait Implementations
impl RefUnwindSafe for List
impl Send for List
impl Sync for List
impl Unpin for List
impl UnwindSafe for List
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<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
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<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
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>,