pub struct ListTaskPushNotificationConfigsRequest {
pub task_id: String,
pub page_size: Option<u32>,
pub page_token: Option<String>,
}Expand description
A typed ListTaskPushNotificationConfigs
request. Wire form:
{
"taskId": "task-1",
"pageSize": 50,
"pageToken": "..."
}taskId is required; pageSize and
pageToken are optional.
Fields§
§task_id: StringThe parent task’s id. Required.
page_size: Option<u32>The maximum number of configurations to return. A request with no page size lets the agent choose.
page_token: Option<String>A page token received from a
previous
ListTaskPushNotificationConfigsResponse
call. The agent uses it to continue
from the last page.
Implementations§
Source§impl ListTaskPushNotificationConfigsRequest
impl ListTaskPushNotificationConfigsRequest
Sourcepub fn new(task_id: impl Into<String>) -> Self
pub fn new(task_id: impl Into<String>) -> Self
Starts a new request with task_id.
Use with_page_size
and
with_page_token
to set the pagination fields.
Sourcepub const fn with_page_size(self, page_size: u32) -> Self
pub const fn with_page_size(self, page_size: u32) -> Self
Sets the page size.
Sourcepub fn with_page_token(self, page_token: impl Into<String>) -> Self
pub fn with_page_token(self, page_token: impl Into<String>) -> Self
Sets the page token.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ListTaskPushNotificationConfigsRequest
impl<'de> Deserialize<'de> for ListTaskPushNotificationConfigsRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ListTaskPushNotificationConfigsRequest
impl StructuralPartialEq for ListTaskPushNotificationConfigsRequest
Auto Trait Implementations§
impl Freeze for ListTaskPushNotificationConfigsRequest
impl RefUnwindSafe for ListTaskPushNotificationConfigsRequest
impl Send for ListTaskPushNotificationConfigsRequest
impl Sync for ListTaskPushNotificationConfigsRequest
impl Unpin for ListTaskPushNotificationConfigsRequest
impl UnsafeUnpin for ListTaskPushNotificationConfigsRequest
impl UnwindSafe for ListTaskPushNotificationConfigsRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more