pub struct Deployment {
pub environment: String,
pub state: String,
pub url: Option<String>,
pub sha: String,
pub created: u64,
pub author: String,
pub log: Option<String>,
}Expand description
A deployment in one of the repository’s environments.
Fields§
§environment: String§state: StringIts last state, in the host’s word lowered: success, failure, error, pending,
in_progress, queued, inactive (a success a newer one replaced)…
url: Option<String>deployments: the address of the environment, else of its job. environments: the
environment’s address alone (log holds the job’s).
sha: StringThe commit it deployed (its full id), when the host tells it (ESC-67).
created: u64When it was made (seconds since 1970); 0 when the host does not say.
Who made it (a login); empty when the host does not say.
log: Option<String>The address of the job that deployed it, to read why it failed.
Trait Implementations§
Source§impl Clone for Deployment
impl Clone for Deployment
Source§fn clone(&self) -> Deployment
fn clone(&self) -> Deployment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Deployment
impl Debug for Deployment
Source§impl Default for Deployment
impl Default for Deployment
Source§fn default() -> Deployment
fn default() -> Deployment
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Deploymentwhere
Deployment: Default,
impl<'de> Deserialize<'de> for Deploymentwhere
Deployment: Default,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Deployment, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Deployment, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Deployment
impl PartialEq for Deployment
Source§impl Serialize for Deployment
impl Serialize for Deployment
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Deployment
Auto Trait Implementations§
impl Freeze for Deployment
impl RefUnwindSafe for Deployment
impl Send for Deployment
impl Sync for Deployment
impl Unpin for Deployment
impl UnsafeUnpin for Deployment
impl UnwindSafe for Deployment
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