pub struct IoK8sApimachineryPkgApisMetaV1Duration {
pub duration: Option<String>,
}Expand description
Duration is a wrapper around time.Duration which supports correct marshaling to YAML and JSON. In particular, it marshals into strings, which can be used as map keys in json.
Fields§
§duration: Option<String>Trait Implementations§
Source§impl Clone for IoK8sApimachineryPkgApisMetaV1Duration
impl Clone for IoK8sApimachineryPkgApisMetaV1Duration
Source§fn clone(&self) -> IoK8sApimachineryPkgApisMetaV1Duration
fn clone(&self) -> IoK8sApimachineryPkgApisMetaV1Duration
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 IoK8sApimachineryPkgApisMetaV1Duration
impl<'de> Deserialize<'de> for IoK8sApimachineryPkgApisMetaV1Duration
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<&IoK8sApimachineryPkgApisMetaV1Duration> for IoK8sApimachineryPkgApisMetaV1Duration
impl From<&IoK8sApimachineryPkgApisMetaV1Duration> for IoK8sApimachineryPkgApisMetaV1Duration
Source§fn from(value: &IoK8sApimachineryPkgApisMetaV1Duration) -> Self
fn from(value: &IoK8sApimachineryPkgApisMetaV1Duration) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IoK8sApimachineryPkgApisMetaV1Duration
impl RefUnwindSafe for IoK8sApimachineryPkgApisMetaV1Duration
impl Send for IoK8sApimachineryPkgApisMetaV1Duration
impl Sync for IoK8sApimachineryPkgApisMetaV1Duration
impl Unpin for IoK8sApimachineryPkgApisMetaV1Duration
impl UnwindSafe for IoK8sApimachineryPkgApisMetaV1Duration
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