Struct twitch_api::helix::polls::EndPollBody
source · [−]#[non_exhaustive]pub struct EndPollBody<'a> {
pub broadcaster_id: Cow<'a, UserIdRef>,
pub id: Cow<'a, PollIdRef>,
pub status: PollStatus,
}
Available on crate feature
helix
only.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.broadcaster_id: Cow<'a, UserIdRef>
The broadcaster running polls. Provided broadcaster_id must match the user_id in the user OAuth token.
id: Cow<'a, PollIdRef>
ID of the poll.
status: PollStatus
The poll status to be set.
Valid values:
TERMINATED
: End the poll manually, but allow it to be viewed publicly.
ARCHIVED
: End the poll manually and do not allow it to be viewed publicly.
Implementations
sourceimpl<'a> EndPollBody<'a>
impl<'a> EndPollBody<'a>
sourceimpl<'a> EndPollBody<'a>
impl<'a> EndPollBody<'a>
Trait Implementations
sourceimpl<'a> Clone for EndPollBody<'a>
impl<'a> Clone for EndPollBody<'a>
sourcefn clone(&self) -> EndPollBody<'a>
fn clone(&self) -> EndPollBody<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'a> Debug for EndPollBody<'a>
impl<'a> Debug for EndPollBody<'a>
sourceimpl<'de: 'a, 'a> Deserialize<'de> for EndPollBody<'a>
impl<'de: 'a, 'a> Deserialize<'de> for EndPollBody<'a>
sourcefn 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
sourceimpl<'a> PartialEq<EndPollBody<'a>> for EndPollBody<'a>
impl<'a> PartialEq<EndPollBody<'a>> for EndPollBody<'a>
sourcefn eq(&self, other: &EndPollBody<'a>) -> bool
fn eq(&self, other: &EndPollBody<'a>) -> bool
sourceimpl<'a> Serialize for EndPollBody<'a>
impl<'a> Serialize for EndPollBody<'a>
impl<'a> Eq for EndPollBody<'a>
impl<'a> StructuralEq for EndPollBody<'a>
impl<'a> StructuralPartialEq for EndPollBody<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for EndPollBody<'a>
impl<'a> Send for EndPollBody<'a>
impl<'a> Sync for EndPollBody<'a>
impl<'a> Unpin for EndPollBody<'a>
impl<'a> UnwindSafe for EndPollBody<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.sourceimpl<T> HelixRequestBody for Twhere
T: Serialize + SealedSerialize,
impl<T> HelixRequestBody for Twhere
T: Serialize + SealedSerialize,
sourcefn try_to_body(&self) -> Result<Bytes, BodyError>
fn try_to_body(&self) -> Result<Bytes, BodyError>
Available on crate feature
helix
only.Create the body