#[non_exhaustive]pub struct CreateEntryRequest {
pub parent: String,
pub entry_id: String,
pub entry: Option<Entry>,
/* private fields */
}Expand description
Create Entry request.
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.parent: StringRequired. The resource name of the parent Entry Group:
projects/{project}/locations/{location}/entryGroups/{entry_group}.
entry_id: StringRequired. Entry identifier. It has to be unique within an Entry Group.
Entries corresponding to Google Cloud resources use an Entry ID format based on full resource names. The format is a full resource name of the resource without the prefix double slashes in the API service name part of the full resource name. This allows retrieval of entries using their associated resource name.
For example, if the full resource name of a resource is
//library.googleapis.com/shelves/shelf1/books/book2,
then the suggested entry_id is
library.googleapis.com/shelves/shelf1/books/book2.
It is also suggested to follow the same convention for entries corresponding to resources from providers or systems other than Google Cloud.
The maximum size of the field is 4000 characters.
entry: Option<Entry>Required. Entry resource.
Implementations§
Source§impl CreateEntryRequest
impl CreateEntryRequest
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_entry_id<T: Into<String>>(self, v: T) -> Self
pub fn set_entry_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_or_clear_entry<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_entry<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for CreateEntryRequest
impl Clone for CreateEntryRequest
Source§fn clone(&self) -> CreateEntryRequest
fn clone(&self) -> CreateEntryRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CreateEntryRequest
impl Debug for CreateEntryRequest
Source§impl Default for CreateEntryRequest
impl Default for CreateEntryRequest
Source§fn default() -> CreateEntryRequest
fn default() -> CreateEntryRequest
Source§impl Message for CreateEntryRequest
impl Message for CreateEntryRequest
Source§impl PartialEq for CreateEntryRequest
impl PartialEq for CreateEntryRequest
impl StructuralPartialEq for CreateEntryRequest
Auto Trait Implementations§
impl Freeze for CreateEntryRequest
impl RefUnwindSafe for CreateEntryRequest
impl Send for CreateEntryRequest
impl Sync for CreateEntryRequest
impl Unpin for CreateEntryRequest
impl UnsafeUnpin for CreateEntryRequest
impl UnwindSafe for CreateEntryRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request