gegl/auto/
metadata_hash.rs

1// Generated by gir (https://github.com/gtk-rs/gir @ 19ccbbc9a3d1)
2// from
3// from gir-files (https://github.com/gtk-rs/gir-files @ 5c1e490fe50a)
4// DO NOT EDIT
5
6use 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}