pub struct DecideBody {
pub winner: String,
}Fields§
§winner: StringWinner is the variant to promote. It must name one of this experiment’s own arms.
Implementations§
Source§impl DecideBody
impl DecideBody
pub fn new(winner: String) -> DecideBody
Trait Implementations§
Source§impl Clone for DecideBody
impl Clone for DecideBody
Source§fn clone(&self) -> DecideBody
fn clone(&self) -> DecideBody
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DecideBody
impl Debug for DecideBody
Source§impl Default for DecideBody
impl Default for DecideBody
Source§fn default() -> DecideBody
fn default() -> DecideBody
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DecideBody
impl<'de> Deserialize<'de> for DecideBody
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 DecideBody
impl PartialEq for DecideBody
Source§impl Serialize for DecideBody
impl Serialize for DecideBody
impl StructuralPartialEq for DecideBody
Auto Trait Implementations§
impl Freeze for DecideBody
impl RefUnwindSafe for DecideBody
impl Send for DecideBody
impl Sync for DecideBody
impl Unpin for DecideBody
impl UnsafeUnpin for DecideBody
impl UnwindSafe for DecideBody
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