pub struct PreviewReq {
pub app: Option<String>,
pub branch: Option<String>,
pub image: Option<String>,
pub project: Option<String>,
}Fields§
§app: Option<String>App is the parent application’s slug, from the path.
branch: Option<String>Branch is the branch to preview; defaults to the parent app’s branch.
image: Option<String>Image is the already-built image ref to deploy. Required — a preview never builds.
project: Option<String>Project is the project the parent application lives under, from the path.
Implementations§
Source§impl PreviewReq
impl PreviewReq
pub fn new() -> PreviewReq
Trait Implementations§
Source§impl Clone for PreviewReq
impl Clone for PreviewReq
Source§fn clone(&self) -> PreviewReq
fn clone(&self) -> PreviewReq
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 PreviewReq
impl Debug for PreviewReq
Source§impl Default for PreviewReq
impl Default for PreviewReq
Source§fn default() -> PreviewReq
fn default() -> PreviewReq
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PreviewReq
impl<'de> Deserialize<'de> for PreviewReq
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 PreviewReq
impl PartialEq for PreviewReq
Source§impl Serialize for PreviewReq
impl Serialize for PreviewReq
impl StructuralPartialEq for PreviewReq
Auto Trait Implementations§
impl Freeze for PreviewReq
impl RefUnwindSafe for PreviewReq
impl Send for PreviewReq
impl Sync for PreviewReq
impl Unpin for PreviewReq
impl UnsafeUnpin for PreviewReq
impl UnwindSafe for PreviewReq
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