#[non_exhaustive]pub struct BuildInfo {
pub function_target: String,
pub source_location: String,
/* private fields */
}Expand description
Build information of the image.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.function_target: StringOutput only. Entry point of the function when the image is a Cloud Run function.
source_location: StringOutput only. Source code location of the image.
Implementations§
Source§impl BuildInfo
impl BuildInfo
pub fn new() -> Self
Sourcepub fn set_function_target<T: Into<String>>(self, v: T) -> Self
pub fn set_function_target<T: Into<String>>(self, v: T) -> Self
Sets the value of function_target.
§Example
ⓘ
let x = BuildInfo::new().set_function_target("example");Sourcepub fn set_source_location<T: Into<String>>(self, v: T) -> Self
pub fn set_source_location<T: Into<String>>(self, v: T) -> Self
Sets the value of source_location.
§Example
ⓘ
let x = BuildInfo::new().set_source_location("example");Trait Implementations§
impl StructuralPartialEq for BuildInfo
Auto Trait Implementations§
impl Freeze for BuildInfo
impl RefUnwindSafe for BuildInfo
impl Send for BuildInfo
impl Sync for BuildInfo
impl Unpin for BuildInfo
impl UnwindSafe for BuildInfo
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