#[non_exhaustive]pub struct TaskPullInput {
pub org: Option<String>,
pub namespace: Option<String>,
pub agent: Option<String>,
pub inbox: String,
pub kinds: Option<Vec<String>>,
pub limit: Option<Integer>,
pub wait_seconds: Option<Integer>,
pub lease_seconds: Option<Option<Integer>>,
pub status: Option<TaskPullInputStatus>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.org: Option<String>§namespace: Option<String>§agent: Option<String>§inbox: String§kinds: Option<Vec<String>>§limit: Option<Integer>§wait_seconds: Option<Integer>§lease_seconds: Option<Option<Integer>>§status: Option<TaskPullInputStatus>Implementations§
Source§impl TaskPullInput
impl TaskPullInput
pub fn new(inbox: impl Into<String>) -> Self
pub fn org(self, org: impl Into<String>) -> Self
pub fn namespace(self, namespace: impl Into<String>) -> Self
pub fn agent(self, agent: impl Into<String>) -> Self
pub fn kinds(self, kinds: impl IntoIterator<Item = impl Into<String>>) -> Self
pub fn limit(self, limit: impl Into<Integer>) -> Self
pub fn wait_seconds(self, wait_seconds: impl Into<Integer>) -> Self
pub fn lease_seconds(self, lease_seconds: impl Into<Integer>) -> Self
pub fn lease_seconds_null(self) -> Self
pub fn status(self, status: TaskPullInputStatus) -> Self
pub async fn send( self, client: &Client, options: CallOptions, ) -> Result<CallResult<TaskPullOutput>, CallFailure>
Trait Implementations§
Source§impl Clone for TaskPullInput
impl Clone for TaskPullInput
Source§impl Debug for TaskPullInput
impl Debug for TaskPullInput
Source§impl<'de> Deserialize<'de> for TaskPullInput
impl<'de> Deserialize<'de> for TaskPullInput
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
Source§impl PartialEq for TaskPullInput
impl PartialEq for TaskPullInput
Source§impl Serialize for TaskPullInput
impl Serialize for TaskPullInput
impl StructuralPartialEq for TaskPullInput
Auto Trait Implementations§
impl Forget for TaskPullInput
impl Freeze for TaskPullInput
impl Move for TaskPullInput
impl RefUnwindSafe for TaskPullInput
impl Send for TaskPullInput
impl Sync for TaskPullInput
impl Unpin for TaskPullInput
impl UnsafeUnpin for TaskPullInput
impl UnwindSafe for TaskPullInput
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