pub struct ReposCreatePagesDeploymentRequest {
pub artifact_id: Option<f64>,
pub artifact_url: Option<String>,
pub environment: Option<String>,
pub pages_build_version: String,
pub oidc_token: String,
}
Expand description
ReposCreatePagesDeploymentRequest : The object used to create GitHub Pages deployment
Fields§
§artifact_id: Option<f64>
The ID of an artifact that contains the .zip or .tar of static assets to deploy. The artifact belongs to the repository. Either artifact_id
or artifact_url
are required.
artifact_url: Option<String>
The URL of an artifact that contains the .zip or .tar of static assets to deploy. The artifact belongs to the repository. Either artifact_id
or artifact_url
are required.
environment: Option<String>
The target environment for this GitHub Pages deployment.
pages_build_version: String
A unique string that represents the version of the build for this deployment.
oidc_token: String
The OIDC token issued by GitHub Actions certifying the origin of the deployment.
Implementations§
Source§impl ReposCreatePagesDeploymentRequest
impl ReposCreatePagesDeploymentRequest
Sourcepub fn new(
pages_build_version: String,
oidc_token: String,
) -> ReposCreatePagesDeploymentRequest
pub fn new( pages_build_version: String, oidc_token: String, ) -> ReposCreatePagesDeploymentRequest
The object used to create GitHub Pages deployment
Trait Implementations§
Source§impl Clone for ReposCreatePagesDeploymentRequest
impl Clone for ReposCreatePagesDeploymentRequest
Source§fn clone(&self) -> ReposCreatePagesDeploymentRequest
fn clone(&self) -> ReposCreatePagesDeploymentRequest
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 Default for ReposCreatePagesDeploymentRequest
impl Default for ReposCreatePagesDeploymentRequest
Source§fn default() -> ReposCreatePagesDeploymentRequest
fn default() -> ReposCreatePagesDeploymentRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReposCreatePagesDeploymentRequest
impl<'de> Deserialize<'de> for ReposCreatePagesDeploymentRequest
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 ReposCreatePagesDeploymentRequest
impl PartialEq for ReposCreatePagesDeploymentRequest
Source§fn eq(&self, other: &ReposCreatePagesDeploymentRequest) -> bool
fn eq(&self, other: &ReposCreatePagesDeploymentRequest) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ReposCreatePagesDeploymentRequest
Auto Trait Implementations§
impl Freeze for ReposCreatePagesDeploymentRequest
impl RefUnwindSafe for ReposCreatePagesDeploymentRequest
impl Send for ReposCreatePagesDeploymentRequest
impl Sync for ReposCreatePagesDeploymentRequest
impl Unpin for ReposCreatePagesDeploymentRequest
impl UnwindSafe for ReposCreatePagesDeploymentRequest
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