pub struct ResourceMetadata {
pub id: Option<String>,
pub name: Option<String>,
pub original_name: Option<String>,
pub owner: Option<UserMetadata>,
pub parent_id: Option<String>,
pub type_: Option<String>,
pub version_id: Option<String>,
}
Expand description
Describes the metadata of a resource.
Fields§
§id: Option<String>
The ID of the resource.
name: Option<String>
The name of the resource.
original_name: Option<String>
The original name of the resource before a rename operation.
owner: Option<UserMetadata>
The owner of the resource.
parent_id: Option<String>
The parent ID of the resource before a rename operation.
type_: Option<String>
The type of resource.
version_id: Option<String>
The version ID of the resource. This is an optional field and is filled for action on document version.
Trait Implementations§
Source§impl Clone for ResourceMetadata
impl Clone for ResourceMetadata
Source§fn clone(&self) -> ResourceMetadata
fn clone(&self) -> ResourceMetadata
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 ResourceMetadata
impl Debug for ResourceMetadata
Source§impl Default for ResourceMetadata
impl Default for ResourceMetadata
Source§fn default() -> ResourceMetadata
fn default() -> ResourceMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResourceMetadata
impl<'de> Deserialize<'de> for ResourceMetadata
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ResourceMetadata
impl PartialEq for ResourceMetadata
impl StructuralPartialEq for ResourceMetadata
Auto Trait Implementations§
impl Freeze for ResourceMetadata
impl RefUnwindSafe for ResourceMetadata
impl Send for ResourceMetadata
impl Sync for ResourceMetadata
impl Unpin for ResourceMetadata
impl UnwindSafe for ResourceMetadata
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