1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
use glib::translate::*;
use ostree_sys;
use std::fmt;
use RepoFinder;
glib_wrapper! {
pub struct RepoFinderConfig(Object<ostree_sys::OstreeRepoFinderConfig, ostree_sys::OstreeRepoFinderConfigClass, RepoFinderConfigClass>) @implements RepoFinder;
match fn {
get_type => || ostree_sys::ostree_repo_finder_config_get_type(),
}
}
impl RepoFinderConfig {
#[cfg(any(feature = "v2018_6", feature = "dox"))]
pub fn new() -> RepoFinderConfig {
unsafe {
from_glib_full(ostree_sys::ostree_repo_finder_config_new())
}
}
}
#[cfg(any(feature = "v2018_6", feature = "dox"))]
impl Default for RepoFinderConfig {
fn default() -> Self {
Self::new()
}
}
pub const NONE_REPO_FINDER_CONFIG: Option<&RepoFinderConfig> = None;
impl fmt::Display for RepoFinderConfig {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "RepoFinderConfig")
}
}