Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make ListOptions properties public #6

Merged
merged 1 commit into from
Jul 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/tasklists.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use chrono::{DateTime, Utc};
use reqwest::{Client, Response};
use serde_derive::{Deserialize, Serialize};

use super::{Result, BASE_URL};
use super::{BASE_URL, Result};

#[derive(Deserialize, Debug, Clone)]
#[serde(rename_all = "camelCase")]
Expand Down Expand Up @@ -54,10 +54,10 @@ pub struct Tasklist {
pub struct ListOptions {
/// Maximum number of task lists returned on one page.
/// Optional. The default is 20 (max allowed: 100).
max_results: Option<u64>,
pub max_results: Option<u64>,

/// Token specifying the result page to return. Optional.
page_token: Option<String>,
pub page_token: Option<String>,
}

// Returns all the authenticated user's task lists.
Expand Down