pub struct CodespaceMachine {
pub name: String,
pub display_name: String,
pub operating_system: String,
pub storage_in_bytes: i32,
pub memory_in_bytes: i32,
pub cpus: i32,
pub prebuild_availability: Option<PrebuildAvailability>,
}
Expand description
CodespaceMachine : A description of the machine powering a codespace.
Fields§
§name: String
The name of the machine.
display_name: String
The display name of the machine includes cores, memory, and storage.
operating_system: String
The operating system of the machine.
storage_in_bytes: i32
How much storage is available to the codespace.
memory_in_bytes: i32
How much memory is available to the codespace.
cpus: i32
How many cores are available to the codespace.
prebuild_availability: Option<PrebuildAvailability>
Whether a prebuild is currently available when creating a codespace for this machine and repository. If a branch was not specified as a ref, the default branch will be assumed. Value will be "null" if prebuilds are not supported or prebuild availability could not be determined. Value will be "none" if no prebuild is available. Latest values "ready" and "in_progress" indicate the prebuild availability status.
Implementations§
Trait Implementations§
Source§impl Clone for CodespaceMachine
impl Clone for CodespaceMachine
Source§fn clone(&self) -> CodespaceMachine
fn clone(&self) -> CodespaceMachine
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 CodespaceMachine
impl Debug for CodespaceMachine
Source§impl Default for CodespaceMachine
impl Default for CodespaceMachine
Source§fn default() -> CodespaceMachine
fn default() -> CodespaceMachine
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CodespaceMachine
impl<'de> Deserialize<'de> for CodespaceMachine
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 PartialEq for CodespaceMachine
impl PartialEq for CodespaceMachine
Source§impl Serialize for CodespaceMachine
impl Serialize for CodespaceMachine
impl StructuralPartialEq for CodespaceMachine
Auto Trait Implementations§
impl Freeze for CodespaceMachine
impl RefUnwindSafe for CodespaceMachine
impl Send for CodespaceMachine
impl Sync for CodespaceMachine
impl Unpin for CodespaceMachine
impl UnwindSafe for CodespaceMachine
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