#[non_exhaustive]pub struct UpdateEntityRequest {
pub entity: Option<Entity>,
pub validate_only: bool,
/* private fields */
}Expand description
Update a metadata entity request. The exiting entity will be fully replaced by the entity in the request. The entity ID is mutable. To modify the ID, use the current entity ID in the request URL and specify the new ID in the request body.
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.entity: Option<Entity>Required. Update description.
validate_only: boolOptional. Only validate the request, but do not perform mutations. The default is false.
Implementations§
Source§impl UpdateEntityRequest
impl UpdateEntityRequest
pub fn new() -> Self
Sourcepub fn set_entity<T>(self, v: T) -> Self
pub fn set_entity<T>(self, v: T) -> Self
Sets the value of entity.
Sourcepub fn set_or_clear_entity<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_entity<T>(self, v: Option<T>) -> Self
Sets or clears the value of entity.
Sourcepub fn set_validate_only<T: Into<bool>>(self, v: T) -> Self
pub fn set_validate_only<T: Into<bool>>(self, v: T) -> Self
Sets the value of validate_only.
Trait Implementations§
Source§impl Clone for UpdateEntityRequest
impl Clone for UpdateEntityRequest
Source§fn clone(&self) -> UpdateEntityRequest
fn clone(&self) -> UpdateEntityRequest
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 UpdateEntityRequest
impl Debug for UpdateEntityRequest
Source§impl Default for UpdateEntityRequest
impl Default for UpdateEntityRequest
Source§fn default() -> UpdateEntityRequest
fn default() -> UpdateEntityRequest
Returns the “default value” for a type. Read more
Source§impl Message for UpdateEntityRequest
impl Message for UpdateEntityRequest
Source§impl PartialEq for UpdateEntityRequest
impl PartialEq for UpdateEntityRequest
impl StructuralPartialEq for UpdateEntityRequest
Auto Trait Implementations§
impl Freeze for UpdateEntityRequest
impl RefUnwindSafe for UpdateEntityRequest
impl Send for UpdateEntityRequest
impl Sync for UpdateEntityRequest
impl Unpin for UpdateEntityRequest
impl UnwindSafe for UpdateEntityRequest
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