#[non_exhaustive]pub struct CreateToolRequest {
pub parent: String,
pub tool: Option<Tool>,
pub tool_id: String,
/* private fields */
}Available on crate feature
tools only.Expand description
Request message of CreateTool.
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 project/location to create tool for. Format:
projects/<Project ID>/locations/<Location ID>
tool: Option<Tool>Required. The tool to create.
tool_id: StringOptional. The ID to use for the tool, which will become the final component of the tool’s resource name.
The tool ID must be compliant with the regression formula
[a-zA-Z][a-zA-Z0-9_-]* with the characters length in range of [3,64].
If the field is not provide, an Id will be auto-generated.
If the field is provided, the caller is responsible for
- the uniqueness of the ID, otherwise the request will be rejected.
- the consistency for whether to use custom ID or not under a project to better ensure uniqueness.
Implementations§
Source§impl CreateToolRequest
impl CreateToolRequest
Trait Implementations§
Source§impl Clone for CreateToolRequest
impl Clone for CreateToolRequest
Source§fn clone(&self) -> CreateToolRequest
fn clone(&self) -> CreateToolRequest
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 CreateToolRequest
impl Debug for CreateToolRequest
Source§impl Default for CreateToolRequest
impl Default for CreateToolRequest
Source§fn default() -> CreateToolRequest
fn default() -> CreateToolRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateToolRequest
impl Message for CreateToolRequest
Source§impl PartialEq for CreateToolRequest
impl PartialEq for CreateToolRequest
impl StructuralPartialEq for CreateToolRequest
Auto Trait Implementations§
impl Freeze for CreateToolRequest
impl RefUnwindSafe for CreateToolRequest
impl Send for CreateToolRequest
impl Sync for CreateToolRequest
impl Unpin for CreateToolRequest
impl UnwindSafe for CreateToolRequest
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