#[non_exhaustive]pub struct InviteTargetUsersJobStatus {
pub status: InviteTargetUsersJobStatusCode,
pub total_users: u32,
pub processed_users: u32,
pub created_at: Timestamp,
pub completed_at: Option<Timestamp>,
pub error_message: Option<CompactString>,
}Expand description
The state of the job that processes an invite’s target users file, which Discord does asynchronously.
discord.js counterpart: TargetUsersJobStatusForInvite.
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.status: InviteTargetUsersJobStatusCodeWhere the job is.
total_users: u32How many users the file lists.
processed_users: u32How many of them were processed so far.
created_at: TimestampWhen the job was created.
completed_at: Option<Timestamp>When the job finished.
error_message: Option<CompactString>Why the job failed.
Trait Implementations§
Source§impl Clone for InviteTargetUsersJobStatus
impl Clone for InviteTargetUsersJobStatus
Source§impl Debug for InviteTargetUsersJobStatus
impl Debug for InviteTargetUsersJobStatus
Source§impl<'de> Deserialize<'de> for InviteTargetUsersJobStatus
impl<'de> Deserialize<'de> for InviteTargetUsersJobStatus
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 InviteTargetUsersJobStatus
impl StructuralPartialEq for InviteTargetUsersJobStatus
Auto Trait Implementations§
impl Forget for InviteTargetUsersJobStatus
impl Freeze for InviteTargetUsersJobStatus
impl Move for InviteTargetUsersJobStatus
impl RefUnwindSafe for InviteTargetUsersJobStatus
impl Send for InviteTargetUsersJobStatus
impl Sync for InviteTargetUsersJobStatus
impl Unpin for InviteTargetUsersJobStatus
impl UnsafeUnpin for InviteTargetUsersJobStatus
impl UnwindSafe for InviteTargetUsersJobStatus
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