#[non_exhaustive]pub struct UrlMapValidationResult {
pub load_errors: Vec<String>,
pub load_succeeded: Option<bool>,
pub test_failures: Vec<TestFailure>,
pub test_passed: Option<bool>,
/* private fields */
}Available on crate features
region-url-maps or url-maps only.Expand description
Message representing the validation result for a UrlMap.
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.load_errors: Vec<String>§load_succeeded: Option<bool>Whether the given UrlMap can be successfully loaded. If false, ‘loadErrors’ indicates the reasons.
test_failures: Vec<TestFailure>§test_passed: Option<bool>If successfully loaded, this field indicates whether the test passed. If false, ’testFailures’s indicate the reason of failure.
Implementations§
Source§impl UrlMapValidationResult
impl UrlMapValidationResult
pub fn new() -> Self
Sourcepub fn set_load_errors<T, V>(self, v: T) -> Self
pub fn set_load_errors<T, V>(self, v: T) -> Self
Sets the value of load_errors.
§Example
ⓘ
let x = UrlMapValidationResult::new().set_load_errors(["a", "b", "c"]);Sourcepub fn set_load_succeeded<T>(self, v: T) -> Self
pub fn set_load_succeeded<T>(self, v: T) -> Self
Sets the value of load_succeeded.
§Example
ⓘ
let x = UrlMapValidationResult::new().set_load_succeeded(true);Sourcepub fn set_or_clear_load_succeeded<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_load_succeeded<T>(self, v: Option<T>) -> Self
Sets or clears the value of load_succeeded.
§Example
ⓘ
let x = UrlMapValidationResult::new().set_or_clear_load_succeeded(Some(false));
let x = UrlMapValidationResult::new().set_or_clear_load_succeeded(None::<bool>);Sourcepub fn set_test_failures<T, V>(self, v: T) -> Self
pub fn set_test_failures<T, V>(self, v: T) -> Self
Sets the value of test_failures.
§Example
ⓘ
use google_cloud_compute_v1::model::TestFailure;
let x = UrlMapValidationResult::new()
.set_test_failures([
TestFailure::default()/* use setters */,
TestFailure::default()/* use (different) setters */,
]);Sourcepub fn set_test_passed<T>(self, v: T) -> Self
pub fn set_test_passed<T>(self, v: T) -> Self
Sets the value of test_passed.
§Example
ⓘ
let x = UrlMapValidationResult::new().set_test_passed(true);Sourcepub fn set_or_clear_test_passed<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_test_passed<T>(self, v: Option<T>) -> Self
Sets or clears the value of test_passed.
§Example
ⓘ
let x = UrlMapValidationResult::new().set_or_clear_test_passed(Some(false));
let x = UrlMapValidationResult::new().set_or_clear_test_passed(None::<bool>);Trait Implementations§
Source§impl Clone for UrlMapValidationResult
impl Clone for UrlMapValidationResult
Source§fn clone(&self) -> UrlMapValidationResult
fn clone(&self) -> UrlMapValidationResult
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 Debug for UrlMapValidationResult
impl Debug for UrlMapValidationResult
Source§impl Default for UrlMapValidationResult
impl Default for UrlMapValidationResult
Source§fn default() -> UrlMapValidationResult
fn default() -> UrlMapValidationResult
Returns the “default value” for a type. Read more
Source§impl Message for UrlMapValidationResult
impl Message for UrlMapValidationResult
Source§impl PartialEq for UrlMapValidationResult
impl PartialEq for UrlMapValidationResult
impl StructuralPartialEq for UrlMapValidationResult
Auto Trait Implementations§
impl Freeze for UrlMapValidationResult
impl RefUnwindSafe for UrlMapValidationResult
impl Send for UrlMapValidationResult
impl Sync for UrlMapValidationResult
impl Unpin for UrlMapValidationResult
impl UnwindSafe for UrlMapValidationResult
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