pub struct SchemaResource {
pub id: String,
pub name: String,
pub description: String,
pub attributes: Vec<Value>,
pub meta: Box<ResourceMeta>,
}Fields§
§id: String§name: String§description: String§attributes: Vec<Value>§meta: Box<ResourceMeta>Implementations§
Source§impl SchemaResource
impl SchemaResource
Sourcepub fn builder() -> SchemaResourceBuilder
pub fn builder() -> SchemaResourceBuilder
Create an instance of SchemaResource using the builder syntax
Source§impl SchemaResource
impl SchemaResource
pub fn new( id: String, name: String, description: String, attributes: Vec<Value>, meta: ResourceMeta, ) -> SchemaResource
Trait Implementations§
Source§impl Clone for SchemaResource
impl Clone for SchemaResource
Source§fn clone(&self) -> SchemaResource
fn clone(&self) -> SchemaResource
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 SchemaResource
impl Debug for SchemaResource
Source§impl Default for SchemaResource
impl Default for SchemaResource
Source§fn default() -> SchemaResource
fn default() -> SchemaResource
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SchemaResource
impl<'de> Deserialize<'de> for SchemaResource
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 SchemaResource
impl PartialEq for SchemaResource
Source§impl Serialize for SchemaResource
impl Serialize for SchemaResource
impl StructuralPartialEq for SchemaResource
Auto Trait Implementations§
impl Freeze for SchemaResource
impl RefUnwindSafe for SchemaResource
impl Send for SchemaResource
impl Sync for SchemaResource
impl Unpin for SchemaResource
impl UnwindSafe for SchemaResource
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