pub struct AndroidStudioVersion {
pub short_version: String,
pub build_version: String,
pub product_code: String,
pub build_number: String,
pub product_name: String,
}Expand description
Version information extracted from Android Studio metadata
Fields§
§short_version: StringShort version string from CFBundleShortVersionString (e.g., “2025.1”)
build_version: StringFull build version from CFBundleVersion (e.g., “AI-251.26094.121.2513.14007798”)
product_code: StringProduct code (e.g., “AI”)
build_number: StringBuild number without product code (e.g., “251.26094.121.2513.14007798”)
product_name: StringHuman-readable name from product-info.json (e.g., “Android Studio”)
Implementations§
Source§impl AndroidStudioVersion
impl AndroidStudioVersion
Sourcepub fn new(
short_version: String,
build_version: String,
product_code: String,
build_number: String,
product_name: String,
) -> Self
pub fn new( short_version: String, build_version: String, product_code: String, build_number: String, product_name: String, ) -> Self
Create a new version from components
Sourcepub fn display_version(&self) -> String
pub fn display_version(&self) -> String
Get a display-friendly version string
Sourcepub fn identifier(&self) -> String
pub fn identifier(&self) -> String
Get a unique identifier for this version
Trait Implementations§
Source§impl Clone for AndroidStudioVersion
impl Clone for AndroidStudioVersion
Source§impl Debug for AndroidStudioVersion
impl Debug for AndroidStudioVersion
Source§impl Display for AndroidStudioVersion
impl Display for AndroidStudioVersion
impl Eq for AndroidStudioVersion
Source§impl Ord for AndroidStudioVersion
impl Ord for AndroidStudioVersion
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for AndroidStudioVersion
impl PartialEq for AndroidStudioVersion
Source§impl PartialOrd for AndroidStudioVersion
impl PartialOrd for AndroidStudioVersion
impl StructuralPartialEq for AndroidStudioVersion
Auto Trait Implementations§
impl Freeze for AndroidStudioVersion
impl RefUnwindSafe for AndroidStudioVersion
impl Send for AndroidStudioVersion
impl Sync for AndroidStudioVersion
impl Unpin for AndroidStudioVersion
impl UnsafeUnpin for AndroidStudioVersion
impl UnwindSafe for AndroidStudioVersion
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.