#[non_exhaustive]pub struct AuditData {
pub method: Option<Method>,
/* private fields */
}Expand description
App Engine admin service audit log.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.method: Option<Method>Detailed information about methods that require it. Does not include simple Get, List or Delete methods because all significant information (resource name, number of returned elements for List operations) is already included in parent audit log message.
Implementations§
Source§impl AuditData
impl AuditData
pub fn new() -> Self
Sourcepub fn set_method<T: Into<Option<Method>>>(self, v: T) -> Self
pub fn set_method<T: Into<Option<Method>>>(self, v: T) -> Self
Sets the value of method.
Note that all the setters affecting method are mutually
exclusive.
§Example
use google_cloud_appengine_v1::model::UpdateServiceMethod;
let x = AuditData::new().set_method(Some(
google_cloud_appengine_v1::model::audit_data::Method::UpdateService(UpdateServiceMethod::default().into())));Sourcepub fn update_service(&self) -> Option<&Box<UpdateServiceMethod>>
pub fn update_service(&self) -> Option<&Box<UpdateServiceMethod>>
The value of method
if it holds a UpdateService, None if the field is not set or
holds a different branch.
Sourcepub fn set_update_service<T: Into<Box<UpdateServiceMethod>>>(self, v: T) -> Self
pub fn set_update_service<T: Into<Box<UpdateServiceMethod>>>(self, v: T) -> Self
Sets the value of method
to hold a UpdateService.
Note that all the setters affecting method are
mutually exclusive.
§Example
use google_cloud_appengine_v1::model::UpdateServiceMethod;
let x = AuditData::new().set_update_service(UpdateServiceMethod::default()/* use setters */);
assert!(x.update_service().is_some());
assert!(x.create_version().is_none());Sourcepub fn create_version(&self) -> Option<&Box<CreateVersionMethod>>
pub fn create_version(&self) -> Option<&Box<CreateVersionMethod>>
The value of method
if it holds a CreateVersion, None if the field is not set or
holds a different branch.
Sourcepub fn set_create_version<T: Into<Box<CreateVersionMethod>>>(self, v: T) -> Self
pub fn set_create_version<T: Into<Box<CreateVersionMethod>>>(self, v: T) -> Self
Sets the value of method
to hold a CreateVersion.
Note that all the setters affecting method are
mutually exclusive.
§Example
use google_cloud_appengine_v1::model::CreateVersionMethod;
let x = AuditData::new().set_create_version(CreateVersionMethod::default()/* use setters */);
assert!(x.create_version().is_some());
assert!(x.update_service().is_none());