pub struct PlatformAvailability {
pub platform: String,
pub unavailable: bool,
pub introduced: Option<Version>,
pub deprecated: Option<Version>,
pub obsoleted: Option<Version>,
pub message: Option<String>,
}
Expand description
The availability of an AST entity on a particular platform.
Fields§
§platform: String
The name of the platform.
Whether the AST entity is unavailable on the platform.
introduced: Option<Version>
The version of the platform in which this AST entity was introduced, if any.
deprecated: Option<Version>
The version of the platform in which this AST entity was deprecated, if any.
obsoleted: Option<Version>
The version of the platform in which this AST entity was obsoleted, if any.
message: Option<String>
A message to display to users (e.g., replacement API suggestions).
Trait Implementations§
Source§impl Clone for PlatformAvailability
impl Clone for PlatformAvailability
Source§fn clone(&self) -> PlatformAvailability
fn clone(&self) -> PlatformAvailability
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 PlatformAvailability
impl Debug for PlatformAvailability
Source§impl Hash for PlatformAvailability
impl Hash for PlatformAvailability
Source§impl PartialEq for PlatformAvailability
impl PartialEq for PlatformAvailability
impl Eq for PlatformAvailability
impl StructuralPartialEq for PlatformAvailability
Auto Trait Implementations§
impl Freeze for PlatformAvailability
impl RefUnwindSafe for PlatformAvailability
impl Send for PlatformAvailability
impl Sync for PlatformAvailability
impl Unpin for PlatformAvailability
impl UnwindSafe for PlatformAvailability
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