pub struct PollResponseDto {Show 21 fields
pub id: String,
pub building_id: String,
pub created_by: String,
pub title: String,
pub description: Option<String>,
pub poll_type: PollType,
pub options: Vec<PollOptionDto>,
pub is_anonymous: bool,
pub allow_multiple_votes: bool,
pub require_all_owners: bool,
pub starts_at: String,
pub ends_at: String,
pub status: PollStatus,
pub total_eligible_voters: i32,
pub total_votes_cast: i32,
pub participation_rate: f64,
pub is_active: bool,
pub is_ended: bool,
pub winning_option: Option<PollOptionDto>,
pub created_at: String,
pub updated_at: String,
}Expand description
Poll response DTO
Fields§
§id: String§building_id: String§created_by: String§title: String§description: Option<String>§poll_type: PollType§options: Vec<PollOptionDto>§is_anonymous: bool§allow_multiple_votes: bool§require_all_owners: bool§starts_at: String§ends_at: String§status: PollStatus§total_eligible_voters: i32§total_votes_cast: i32§participation_rate: f64§is_active: bool§is_ended: bool§winning_option: Option<PollOptionDto>§created_at: String§updated_at: StringTrait Implementations§
Source§impl Debug for PollResponseDto
impl Debug for PollResponseDto
Source§impl From<Poll> for PollResponseDto
impl From<Poll> for PollResponseDto
Auto Trait Implementations§
impl Freeze for PollResponseDto
impl RefUnwindSafe for PollResponseDto
impl Send for PollResponseDto
impl Sync for PollResponseDto
impl Unpin for PollResponseDto
impl UnwindSafe for PollResponseDto
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
§impl<T> Chain<T> for T
impl<T> Chain<T> for T
§impl<T> Fake for T
impl<T> Fake for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.