pub struct Preview {Show 17 fields
pub app: String,
pub number: u64,
pub stack: String,
pub provider: String,
pub fork: bool,
pub title: String,
pub head_ref: String,
pub base_ref: String,
pub head_sha: Option<String>,
pub sha: Option<String>,
pub image: Option<String>,
pub url: Option<String>,
pub created_at: u64,
pub updated_at: u64,
pub next_deployment: u64,
pub current: Option<u64>,
pub removing: bool,
}Expand description
One preview: a pull request of an app and what runs for it.
Fields§
§app: String§number: u64§stack: String§provider: Stringgithub, gitea or gitlab: which forge refs and API it uses.
fork: bool§title: String§head_ref: String§base_ref: String§head_sha: Option<String>The head commit the last event named.
sha: Option<String>What runs: the commit, the image, the URL.
image: Option<String>§url: Option<String>§created_at: u64§updated_at: u64§next_deployment: u64§current: Option<u64>§removing: boolBeing removed: no more deploys.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Preview
impl<'de> Deserialize<'de> for Preview
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
impl StructuralPartialEq for Preview
Auto Trait Implementations§
impl Freeze for Preview
impl RefUnwindSafe for Preview
impl Send for Preview
impl Sync for Preview
impl Unpin for Preview
impl UnsafeUnpin for Preview
impl UnwindSafe for Preview
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