Struct hakuban::prelude::ObjectDescriptor
source · pub struct ObjectDescriptor {
pub tags: HashSet<TagDescriptor>,
pub json: Value,
}
Expand description
Unique object identifier
Fields§
§json: Value
Implementations§
source§impl ObjectDescriptor
impl ObjectDescriptor
pub fn new<Q: Into<TagDescriptor>, S: IntoIterator<Item = Q>, T: Into<Value>>( tags: S, json: T ) -> ObjectDescriptor
pub fn json_to_string(&self) -> String
pub fn from_json_strings( tags: Vec<String>, json: String ) -> Result<ObjectDescriptor>
Trait Implementations§
source§impl Clone for ObjectDescriptor
impl Clone for ObjectDescriptor
source§fn clone(&self) -> ObjectDescriptor
fn clone(&self) -> ObjectDescriptor
Returns a copy 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 ObjectDescriptor
impl Debug for ObjectDescriptor
source§impl<'de> Deserialize<'de> for ObjectDescriptor
impl<'de> Deserialize<'de> for ObjectDescriptor
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 Display for ObjectDescriptor
impl Display for ObjectDescriptor
source§impl From<&ObjectDescriptor> for FFIObjectDescriptor
impl From<&ObjectDescriptor> for FFIObjectDescriptor
source§fn from(object_descriptor: &ObjectDescriptor) -> Self
fn from(object_descriptor: &ObjectDescriptor) -> Self
Converts to this type from the input type.