#[non_exhaustive]pub struct CreateHookRequest {
pub parent: String,
pub hook: Option<Hook>,
pub hook_id: String,
/* private fields */
}Expand description
CreateHookRequest is the request for creating a hook.
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.parent: StringRequired. The repository in which to create the hook. Values are of the
form
projects/{project_number}/locations/{location_id}/repositories/{repository_id}
hook: Option<Hook>Required. The resource being created.
hook_id: StringRequired. The ID to use for the hook, which will become the final component of the hook’s resource name. This value restricts to lower-case letters, numbers, and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum.
Implementations§
Source§impl CreateHookRequest
impl CreateHookRequest
Trait Implementations§
Source§impl Clone for CreateHookRequest
impl Clone for CreateHookRequest
Source§fn clone(&self) -> CreateHookRequest
fn clone(&self) -> CreateHookRequest
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 CreateHookRequest
impl Debug for CreateHookRequest
Source§impl Default for CreateHookRequest
impl Default for CreateHookRequest
Source§fn default() -> CreateHookRequest
fn default() -> CreateHookRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateHookRequest
impl Message for CreateHookRequest
Source§impl PartialEq for CreateHookRequest
impl PartialEq for CreateHookRequest
impl StructuralPartialEq for CreateHookRequest
Auto Trait Implementations§
impl Freeze for CreateHookRequest
impl RefUnwindSafe for CreateHookRequest
impl Send for CreateHookRequest
impl Sync for CreateHookRequest
impl Unpin for CreateHookRequest
impl UnwindSafe for CreateHookRequest
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