pub enum AnyTimeLock {
R(AnyRelTimeLock),
A(AnyAbsTimeLock),
}Expand description
§Any Time Lock (Relative, Absolute) x (Height, Time)
Represents a type which can be any type of lock
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for AnyTimeLock
impl Clone for AnyTimeLock
Source§fn clone(&self) -> AnyTimeLock
fn clone(&self) -> AnyTimeLock
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<'de> Deserialize<'de> for AnyTimeLock
impl<'de> Deserialize<'de> for AnyTimeLock
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 From<AnyAbsTimeLock> for AnyTimeLock
impl From<AnyAbsTimeLock> for AnyTimeLock
Source§fn from(lt: AnyAbsTimeLock) -> Self
fn from(lt: AnyAbsTimeLock) -> Self
Converts to this type from the input type.
Source§impl From<AnyRelTimeLock> for AnyTimeLock
impl From<AnyRelTimeLock> for AnyTimeLock
Source§fn from(lt: AnyRelTimeLock) -> Self
fn from(lt: AnyRelTimeLock) -> Self
Converts to this type from the input type.
Source§impl From<AnyTimeLock> for Clause
impl From<AnyTimeLock> for Clause
Source§fn from(lt: AnyTimeLock) -> Self
fn from(lt: AnyTimeLock) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for AnyTimeLock
impl JsonSchema for AnyTimeLock
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 Serialize for AnyTimeLock
impl Serialize for AnyTimeLock
impl Copy for AnyTimeLock
Auto Trait Implementations§
impl Freeze for AnyTimeLock
impl RefUnwindSafe for AnyTimeLock
impl Send for AnyTimeLock
impl Sync for AnyTimeLock
impl Unpin for AnyTimeLock
impl UnwindSafe for AnyTimeLock
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