pub struct Codespace {Show 32 fields
pub id: i32,
pub name: String,
pub display_name: Option<Option<String>>,
pub environment_id: Option<String>,
pub owner: Box<SimpleUser>,
pub billable_owner: Box<SimpleUser>,
pub repository: Box<MinimalRepository>,
pub machine: Option<Box<NullableCodespaceMachine>>,
pub devcontainer_path: Option<Option<String>>,
pub prebuild: Option<bool>,
pub created_at: String,
pub updated_at: String,
pub last_used_at: String,
pub state: State,
pub url: String,
pub git_status: Box<CodespaceGitStatus>,
pub location: Location,
pub idle_timeout_minutes: Option<i32>,
pub web_url: String,
pub machines_url: String,
pub start_url: String,
pub stop_url: String,
pub publish_url: Option<Option<String>>,
pub pulls_url: Option<String>,
pub recent_folders: Vec<String>,
pub runtime_constraints: Option<Box<CodespaceRuntimeConstraints>>,
pub pending_operation: Option<Option<bool>>,
pub pending_operation_disabled_reason: Option<Option<String>>,
pub idle_timeout_notice: Option<Option<String>>,
pub retention_period_minutes: Option<Option<i32>>,
pub retention_expires_at: Option<Option<String>>,
pub last_known_stop_notice: Option<Option<String>>,
}
Expand description
Codespace : A codespace.
Fields§
§id: i32
§name: String
Automatically generated name of this codespace.
display_name: Option<Option<String>>
Display name for this codespace.
environment_id: Option<String>
UUID identifying this codespace’s environment.
owner: Box<SimpleUser>
§billable_owner: Box<SimpleUser>
§repository: Box<MinimalRepository>
§machine: Option<Box<NullableCodespaceMachine>>
§devcontainer_path: Option<Option<String>>
Path to devcontainer.json from repo root used to create Codespace.
prebuild: Option<bool>
Whether the codespace was created from a prebuild.
created_at: String
§updated_at: String
§last_used_at: String
Last known time this codespace was started.
state: State
State of this codespace.
url: String
API URL for this codespace.
git_status: Box<CodespaceGitStatus>
§location: Location
The initally assigned location of a new codespace.
idle_timeout_minutes: Option<i32>
The number of minutes of inactivity after which this codespace will be automatically stopped.
web_url: String
URL to access this codespace on the web.
machines_url: String
API URL to access available alternate machine types for this codespace.
start_url: String
API URL to start this codespace.
stop_url: String
API URL to stop this codespace.
publish_url: Option<Option<String>>
API URL to publish this codespace to a new repository.
pulls_url: Option<String>
API URL for the Pull Request associated with this codespace, if any.
recent_folders: Vec<String>
§runtime_constraints: Option<Box<CodespaceRuntimeConstraints>>
§pending_operation: Option<Option<bool>>
Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it.
pending_operation_disabled_reason: Option<Option<String>>
Text to show user when codespace is disabled by a pending operation
idle_timeout_notice: Option<Option<String>>
Text to show user when codespace idle timeout minutes has been overriden by an organization policy
retention_period_minutes: Option<Option<i32>>
Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).
retention_expires_at: Option<Option<String>>
When a codespace will be auto-deleted based on the "retention_period_minutes" and "last_used_at"
last_known_stop_notice: Option<Option<String>>
The text to display to a user when a codespace has been stopped for a potentially actionable reason.
Implementations§
Source§impl Codespace
impl Codespace
Sourcepub fn new(
id: i32,
name: String,
environment_id: Option<String>,
owner: SimpleUser,
billable_owner: SimpleUser,
repository: MinimalRepository,
machine: Option<NullableCodespaceMachine>,
prebuild: Option<bool>,
created_at: String,
updated_at: String,
last_used_at: String,
state: State,
url: String,
git_status: CodespaceGitStatus,
location: Location,
idle_timeout_minutes: Option<i32>,
web_url: String,
machines_url: String,
start_url: String,
stop_url: String,
pulls_url: Option<String>,
recent_folders: Vec<String>,
) -> Codespace
pub fn new( id: i32, name: String, environment_id: Option<String>, owner: SimpleUser, billable_owner: SimpleUser, repository: MinimalRepository, machine: Option<NullableCodespaceMachine>, prebuild: Option<bool>, created_at: String, updated_at: String, last_used_at: String, state: State, url: String, git_status: CodespaceGitStatus, location: Location, idle_timeout_minutes: Option<i32>, web_url: String, machines_url: String, start_url: String, stop_url: String, pulls_url: Option<String>, recent_folders: Vec<String>, ) -> Codespace
A codespace.