#[non_exhaustive]pub struct DeprecationInfo {
pub deprecation_time: Option<Timestamp>,
pub replacement_processor_version: String,
/* private fields */
}Expand description
Information about the upcoming deprecation of this processor version.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.deprecation_time: Option<Timestamp>The time at which this processor version will be deprecated.
replacement_processor_version: StringIf set, the processor version that will be used as a replacement.
Implementations§
Source§impl DeprecationInfo
impl DeprecationInfo
pub fn new() -> Self
Sourcepub fn set_deprecation_time<T>(self, v: T) -> Self
pub fn set_deprecation_time<T>(self, v: T) -> Self
Sets the value of deprecation_time.
§Example
ⓘ
use wkt::Timestamp;
let x = DeprecationInfo::new().set_deprecation_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_deprecation_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_deprecation_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of deprecation_time.
§Example
ⓘ
use wkt::Timestamp;
let x = DeprecationInfo::new().set_or_clear_deprecation_time(Some(Timestamp::default()/* use setters */));
let x = DeprecationInfo::new().set_or_clear_deprecation_time(None::<Timestamp>);Sourcepub fn set_replacement_processor_version<T: Into<String>>(self, v: T) -> Self
pub fn set_replacement_processor_version<T: Into<String>>(self, v: T) -> Self
Sets the value of replacement_processor_version.
§Example
ⓘ
let x = DeprecationInfo::new().set_replacement_processor_version("example");Trait Implementations§
Source§impl Clone for DeprecationInfo
impl Clone for DeprecationInfo
Source§fn clone(&self) -> DeprecationInfo
fn clone(&self) -> DeprecationInfo
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 Debug for DeprecationInfo
impl Debug for DeprecationInfo
Source§impl Default for DeprecationInfo
impl Default for DeprecationInfo
Source§fn default() -> DeprecationInfo
fn default() -> DeprecationInfo
Returns the “default value” for a type. Read more
Source§impl Message for DeprecationInfo
impl Message for DeprecationInfo
Source§impl PartialEq for DeprecationInfo
impl PartialEq for DeprecationInfo
impl StructuralPartialEq for DeprecationInfo
Auto Trait Implementations§
impl Freeze for DeprecationInfo
impl RefUnwindSafe for DeprecationInfo
impl Send for DeprecationInfo
impl Sync for DeprecationInfo
impl Unpin for DeprecationInfo
impl UnwindSafe for DeprecationInfo
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