pub enum ContractNegotiationState {
Show 16 variants
Initial,
Requesting,
Requested,
Offering,
Offered,
Accepting,
Accepted,
Agreeing,
Agreed,
Verifying,
Verified,
Finalizing,
Finalized,
Terminating,
Terminated,
Other(String),
}Variants§
Initial
Requesting
Requested
Offering
Offered
Accepting
Accepted
Agreeing
Agreed
Verifying
Verified
Finalizing
Finalized
Terminating
Terminated
Other(String)
Trait Implementations§
Source§impl Clone for ContractNegotiationState
impl Clone for ContractNegotiationState
Source§fn clone(&self) -> ContractNegotiationState
fn clone(&self) -> ContractNegotiationState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ContractNegotiationState
impl Debug for ContractNegotiationState
Source§impl Display for ContractNegotiationState
impl Display for ContractNegotiationState
Source§impl From<&ContractNegotiationState> for ContractNegotiationState
impl From<&ContractNegotiationState> for ContractNegotiationState
Source§fn from(state: &EdcContractNegotiationState) -> Self
fn from(state: &EdcContractNegotiationState) -> Self
Auto Trait Implementations§
impl Freeze for ContractNegotiationState
impl RefUnwindSafe for ContractNegotiationState
impl Send for ContractNegotiationState
impl Sync for ContractNegotiationState
impl Unpin for ContractNegotiationState
impl UnsafeUnpin for ContractNegotiationState
impl UnwindSafe for ContractNegotiationState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
self to a value of a Properties struct.Source§impl<T> IntoTruncateContent for Twhere
T: ToString,
impl<T> IntoTruncateContent for Twhere
T: ToString,
Source§fn truncate_before(self, num: usize) -> TruncateContent
fn truncate_before(self, num: usize) -> TruncateContent
This function is supposed to truncate num characters before the end of the string.
§Bytes, Code Points, and Grapheme Clusters
However, what it actually does is to truncate the string at the next Unicode code point,
after num bytes (not characters). This is quick and should work reasonably well with
the Latin 1 character set (or, UTF-8 characters which are represented by a single byte).
Given a string with multi-byte code points, or even grapheme clusters (user-perceived characters, which may consists of multiple Unicode code points), this will split at the wrong location.
It will still split, and not skip any data. But it might lead to an unexpected (shorter) end section.
What about an actual correct implementation? That would be possible by using an additional dependency. It would also need to count all code points and grapheme clusters from the start of the string. The question is: is that worth it? Maybe, maybe not!?
Source§fn truncate_start(self) -> TruncateContent
fn truncate_start(self) -> TruncateContent
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> SelectItemRenderer for Twhere
T: Display,
impl<T> SelectItemRenderer for Twhere
T: Display,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.