Struct k8s_gateway_api::duration::K8sDuration
source · pub struct K8sDuration { /* private fields */ }
Implementations§
source§impl K8sDuration
impl K8sDuration
pub fn is_negative(&self) -> bool
Trait Implementations§
source§impl Clone for K8sDuration
impl Clone for K8sDuration
source§fn clone(&self) -> K8sDuration
fn clone(&self) -> K8sDuration
Returns a copy 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 K8sDuration
impl Debug for K8sDuration
source§impl<'de> Deserialize<'de> for K8sDuration
impl<'de> Deserialize<'de> for K8sDuration
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 Display for K8sDuration
impl Display for K8sDuration
source§impl From<Duration> for K8sDuration
impl From<Duration> for K8sDuration
source§impl From<K8sDuration> for Duration
impl From<K8sDuration> for Duration
source§fn from(_: K8sDuration) -> Self
fn from(_: K8sDuration) -> Self
Converts to this type from the input type.
source§impl FromStr for K8sDuration
impl FromStr for K8sDuration
source§impl JsonSchema for K8sDuration
impl JsonSchema for K8sDuration
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. 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§fn json_schema(_: &mut SchemaGenerator) -> Schema
fn json_schema(_: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§impl PartialEq for K8sDuration
impl PartialEq for K8sDuration
source§fn eq(&self, other: &K8sDuration) -> bool
fn eq(&self, other: &K8sDuration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for K8sDuration
impl Serialize for K8sDuration
impl Copy for K8sDuration
impl Eq for K8sDuration
impl StructuralEq for K8sDuration
impl StructuralPartialEq for K8sDuration
Auto Trait Implementations§
impl RefUnwindSafe for K8sDuration
impl Send for K8sDuration
impl Sync for K8sDuration
impl Unpin for K8sDuration
impl UnwindSafe for K8sDuration
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