pub struct Conditions<C>(/* private fields */)
where
C: ConditionType;Expand description
A Vec<Condition> that maintains transition times.
Implementations§
Source§impl<C> Conditions<C>where
C: ConditionType,
impl<C> Conditions<C>where
C: ConditionType,
pub fn with_conditions(conditions: Vec<Condition<C>>) -> Conditions<C>
Trait Implementations§
Source§impl<C> Clone for Conditions<C>where
C: Clone + ConditionType,
impl<C> Clone for Conditions<C>where
C: Clone + ConditionType,
Source§fn clone(&self) -> Conditions<C>
fn clone(&self) -> Conditions<C>
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<C> Debug for Conditions<C>where
C: Debug + ConditionType,
impl<C> Debug for Conditions<C>where
C: Debug + ConditionType,
Source§impl<C> Default for Conditions<C>where
C: ConditionType,
impl<C> Default for Conditions<C>where
C: ConditionType,
Source§fn default() -> Conditions<C>
fn default() -> Conditions<C>
Returns the “default value” for a type. Read more
Source§impl<'de, C> Deserialize<'de> for Conditions<C>where
C: ConditionType + Deserialize<'de>,
impl<'de, C> Deserialize<'de> for Conditions<C>where
C: ConditionType + Deserialize<'de>,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Conditions<C>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Conditions<C>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<C> JsonSchema for Conditions<C>where
C: ConditionType + JsonSchema,
impl<C> JsonSchema for Conditions<C>where
C: ConditionType + JsonSchema,
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl<C> Serialize for Conditions<C>where
C: ConditionType + Serialize,
impl<C> Serialize for Conditions<C>where
C: ConditionType + Serialize,
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<C> Freeze for Conditions<C>
impl<C> RefUnwindSafe for Conditions<C>where
C: RefUnwindSafe,
impl<C> Send for Conditions<C>where
C: Send,
impl<C> Sync for Conditions<C>where
C: Sync,
impl<C> Unpin for Conditions<C>where
C: Unpin,
impl<C> UnsafeUnpin for Conditions<C>
impl<C> UnwindSafe for Conditions<C>where
C: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> 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 more