gegl/auto/
metadata_hash.rs1use crate::{ffi, Metadata, MetadataStore};
7use glib::{prelude::*, translate::*};
8
9glib::wrapper! {
10 #[doc(alias = "GeglMetadataHash")]
11 pub struct MetadataHash(Object<ffi::GeglMetadataHash, ffi::GeglMetadataHashClass>) @extends MetadataStore, @implements Metadata;
12
13 match fn {
14 type_ => || ffi::gegl_metadata_hash_get_type(),
15 }
16}
17
18impl MetadataHash {
19 #[doc(alias = "gegl_metadata_hash_new")]
20 pub fn new() -> MetadataHash {
21 unsafe { MetadataStore::from_glib_full(ffi::gegl_metadata_hash_new()).unsafe_cast() }
22 }
23}
24
25impl Default for MetadataHash {
26 fn default() -> Self {
27 Self::new()
28 }
29}