pub struct CreateVoteParams {
pub tenant_id: String,
pub comment_id: String,
pub direction: String,
pub user_id: Option<String>,
pub anon_user_id: Option<String>,
}Expand description
struct for passing parameters to the method create_vote
Fields§
§tenant_id: String§comment_id: String§direction: String§user_id: Option<String>§anon_user_id: Option<String>Trait Implementations§
Source§impl Clone for CreateVoteParams
impl Clone for CreateVoteParams
Source§fn clone(&self) -> CreateVoteParams
fn clone(&self) -> CreateVoteParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CreateVoteParams
impl RefUnwindSafe for CreateVoteParams
impl Send for CreateVoteParams
impl Sync for CreateVoteParams
impl Unpin for CreateVoteParams
impl UnwindSafe for CreateVoteParams
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