pub struct TensionResolution {
pub chosen_side: ChosenSide,
pub rationale: String,
pub resolved_at: Timestamp,
pub resolver: String,
}Expand description
How a tension was resolved.
Fields§
§chosen_side: ChosenSideWhich side was chosen (or neither/merged).
rationale: StringRationale for the resolution.
resolved_at: TimestampWhen the tension was resolved.
resolver: StringActor who resolved the tension.
Implementations§
Source§impl TensionResolution
impl TensionResolution
Sourcepub fn new(
chosen_side: ChosenSide,
rationale: impl Into<String>,
resolver: impl Into<String>,
) -> TensionResolution
pub fn new( chosen_side: ChosenSide, rationale: impl Into<String>, resolver: impl Into<String>, ) -> TensionResolution
Create a new resolution.
Sourcepub fn choose_left(
rationale: impl Into<String>,
resolver: impl Into<String>,
) -> TensionResolution
pub fn choose_left( rationale: impl Into<String>, resolver: impl Into<String>, ) -> TensionResolution
Create a resolution choosing the left side.
Sourcepub fn choose_right(
rationale: impl Into<String>,
resolver: impl Into<String>,
) -> TensionResolution
pub fn choose_right( rationale: impl Into<String>, resolver: impl Into<String>, ) -> TensionResolution
Create a resolution choosing the right side.
Sourcepub fn reject_both(
rationale: impl Into<String>,
resolver: impl Into<String>,
) -> TensionResolution
pub fn reject_both( rationale: impl Into<String>, resolver: impl Into<String>, ) -> TensionResolution
Create a resolution rejecting both sides.
Trait Implementations§
Source§impl Clone for TensionResolution
impl Clone for TensionResolution
Source§fn clone(&self) -> TensionResolution
fn clone(&self) -> TensionResolution
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 moreSource§impl Debug for TensionResolution
impl Debug for TensionResolution
Source§impl<'de> Deserialize<'de> for TensionResolution
impl<'de> Deserialize<'de> for TensionResolution
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TensionResolution, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TensionResolution, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for TensionResolution
impl Serialize for TensionResolution
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for TensionResolution
impl RefUnwindSafe for TensionResolution
impl Send for TensionResolution
impl Sync for TensionResolution
impl Unpin for TensionResolution
impl UnsafeUnpin for TensionResolution
impl UnwindSafe for TensionResolution
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