pub struct PatchedBulkWritableNoteRequest {
pub id: Uuid,
pub assigned_object_type: Option<String>,
pub assigned_object_id: Option<Uuid>,
pub note: Option<String>,
pub user: Option<Option<Box<ApprovalWorkflowUser>>>,
}Expand description
PatchedBulkWritableNoteRequest : This base serializer implements common fields and logic for all ModelSerializers. Namely, it: - defines the display field which exposes a human friendly value for the given object. - ensures that id field is always present on the serializer as well. - ensures that created and last_updated fields are always present if applicable to this model and serializer. - ensures that object_type field is always present on the serializer which represents the content-type of this serializer’s associated model (e.g. "dcim.device"). This is required as the OpenAPI schema, using the PolymorphicProxySerializer class defined below, relies upon this field as a way to identify to the client which of several possible serializers are in use for a given attribute. - supports ?depth query parameter. It is passed in as nested_depth to the build_nested_field() function to enable the dynamic generation of nested serializers.
Fields§
§id: Uuid§assigned_object_type: Option<String>§assigned_object_id: Option<Uuid>§note: Option<String>§user: Option<Option<Box<ApprovalWorkflowUser>>>Implementations§
Source§impl PatchedBulkWritableNoteRequest
impl PatchedBulkWritableNoteRequest
Sourcepub fn new(id: Uuid) -> PatchedBulkWritableNoteRequest
pub fn new(id: Uuid) -> PatchedBulkWritableNoteRequest
This base serializer implements common fields and logic for all ModelSerializers. Namely, it: - defines the display field which exposes a human friendly value for the given object. - ensures that id field is always present on the serializer as well. - ensures that created and last_updated fields are always present if applicable to this model and serializer. - ensures that object_type field is always present on the serializer which represents the content-type of this serializer’s associated model (e.g. "dcim.device"). This is required as the OpenAPI schema, using the PolymorphicProxySerializer class defined below, relies upon this field as a way to identify to the client which of several possible serializers are in use for a given attribute. - supports ?depth query parameter. It is passed in as nested_depth to the build_nested_field() function to enable the dynamic generation of nested serializers.
Trait Implementations§
Source§impl Clone for PatchedBulkWritableNoteRequest
impl Clone for PatchedBulkWritableNoteRequest
Source§fn clone(&self) -> PatchedBulkWritableNoteRequest
fn clone(&self) -> PatchedBulkWritableNoteRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for PatchedBulkWritableNoteRequest
impl Default for PatchedBulkWritableNoteRequest
Source§fn default() -> PatchedBulkWritableNoteRequest
fn default() -> PatchedBulkWritableNoteRequest
Source§impl<'de> Deserialize<'de> for PatchedBulkWritableNoteRequest
impl<'de> Deserialize<'de> for PatchedBulkWritableNoteRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for PatchedBulkWritableNoteRequest
impl PartialEq for PatchedBulkWritableNoteRequest
Source§fn eq(&self, other: &PatchedBulkWritableNoteRequest) -> bool
fn eq(&self, other: &PatchedBulkWritableNoteRequest) -> bool
self and other values to be equal, and is used by ==.