Trait libflatpak::prelude::RemoteExt
source · pub trait RemoteExt:
IsA<Remote>
+ Sealed
+ 'static {
Show 38 methods
// Provided methods
fn appstream_dir(&self, arch: Option<&str>) -> Option<File> { ... }
fn appstream_timestamp(&self, arch: Option<&str>) -> Option<File> { ... }
fn collection_id(&self) -> Option<GString> { ... }
fn comment(&self) -> Option<GString> { ... }
fn default_branch(&self) -> Option<GString> { ... }
fn description(&self) -> Option<GString> { ... }
fn is_disabled(&self) -> bool { ... }
fn filter(&self) -> Option<GString> { ... }
fn is_gpg_verify(&self) -> bool { ... }
fn homepage(&self) -> Option<GString> { ... }
fn icon(&self) -> Option<GString> { ... }
fn main_ref(&self) -> Option<GString> { ... }
fn name(&self) -> Option<GString> { ... }
fn is_nodeps(&self) -> bool { ... }
fn is_noenumerate(&self) -> bool { ... }
fn prio(&self) -> i32 { ... }
fn remote_type(&self) -> RemoteType { ... }
fn title(&self) -> Option<GString> { ... }
fn url(&self) -> Option<GString> { ... }
fn set_collection_id(&self, collection_id: Option<&str>) { ... }
fn set_comment(&self, comment: &str) { ... }
fn set_default_branch(&self, default_branch: &str) { ... }
fn set_description(&self, description: &str) { ... }
fn set_disabled(&self, disabled: bool) { ... }
fn set_filter(&self, filter_path: &str) { ... }
fn set_gpg_key(&self, gpg_key: &Bytes) { ... }
fn set_gpg_verify(&self, gpg_verify: bool) { ... }
fn set_homepage(&self, homepage: &str) { ... }
fn set_icon(&self, icon: &str) { ... }
fn set_main_ref(&self, main_ref: &str) { ... }
fn set_nodeps(&self, nodeps: bool) { ... }
fn set_noenumerate(&self, noenumerate: bool) { ... }
fn set_prio(&self, prio: i32) { ... }
fn set_title(&self, title: &str) { ... }
fn set_url(&self, url: &str) { ... }
fn set_name(&self, name: Option<&str>) { ... }
fn type_(&self) -> RemoteType { ... }
fn connect_name_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
}
Provided Methods§
sourcefn collection_id(&self) -> Option<GString>
fn collection_id(&self) -> Option<GString>
sourcefn default_branch(&self) -> Option<GString>
fn default_branch(&self) -> Option<GString>
sourcefn description(&self) -> Option<GString>
fn description(&self) -> Option<GString>
sourcefn is_disabled(&self) -> bool
fn is_disabled(&self) -> bool
sourcefn is_gpg_verify(&self) -> bool
fn is_gpg_verify(&self) -> bool
Returns whether GPG verification is enabled for the remote.
§Returns
whether GPG verification is enabled
fn main_ref(&self) -> Option<GString>
sourcefn is_nodeps(&self) -> bool
fn is_nodeps(&self) -> bool
Returns whether this remote should be used to find dependencies.
§Returns
whether the remote is marked as “don’t use for dependencies”
sourcefn is_noenumerate(&self) -> bool
fn is_noenumerate(&self) -> bool
Returns whether this remote should be used to list applications.
§Returns
whether the remote is marked as “don’t enumerate”
sourcefn remote_type(&self) -> RemoteType
fn remote_type(&self) -> RemoteType
sourcefn set_collection_id(&self, collection_id: Option<&str>)
fn set_collection_id(&self, collection_id: Option<&str>)
Sets the repository collection ID of this remote.
Note: This is a local modification of this object, you must commit changes
using InstallationExt::modify_remote()
for the changes to take
effect.
§collection_id
The new collection ID, or None
to unset
sourcefn set_comment(&self, comment: &str)
fn set_comment(&self, comment: &str)
Sets the comment of this remote.
Note: This is a local modification of this object, you must commit changes
using InstallationExt::modify_remote()
for the changes to take
effect.
§comment
The new comment
sourcefn set_default_branch(&self, default_branch: &str)
fn set_default_branch(&self, default_branch: &str)
Sets the default branch configured for this remote.
Note: This is a local modification of this object, you must commit changes
using InstallationExt::modify_remote()
for the changes to take
effect.
§default_branch
The new default_branch, or None
to unset
sourcefn set_description(&self, description: &str)
fn set_description(&self, description: &str)
Sets the description of this remote.
Note: This is a local modification of this object, you must commit changes
using InstallationExt::modify_remote()
for the changes to take
effect.
§description
The new description
sourcefn set_disabled(&self, disabled: bool)
fn set_disabled(&self, disabled: bool)
Sets the disabled config of this remote. See is_disabled()
.
Note: This is a local modification of this object, you must commit changes
using InstallationExt::modify_remote()
for the changes to take
effect.
§disabled
a bool
sourcefn set_filter(&self, filter_path: &str)
fn set_filter(&self, filter_path: &str)
Sets a filter for this remote.
Note: This is a local modification of this object, you must commit changes
using InstallationExt::modify_remote()
for the changes to take
effect.
§filter_path
The pathname of the new filter file
sourcefn set_gpg_key(&self, gpg_key: &Bytes)
fn set_gpg_key(&self, gpg_key: &Bytes)
Sets the trusted gpg key for this remote.
Note: This is a local modification of this object, you must commit changes
using InstallationExt::modify_remote()
for the changes to take
effect.
§gpg_key
a glib::Bytes
with gpg binary key data
sourcefn set_gpg_verify(&self, gpg_verify: bool)
fn set_gpg_verify(&self, gpg_verify: bool)
Sets the gpg_verify config of this remote. See is_gpg_verify()
.
Note: This is a local modification of this object, you must commit changes
using InstallationExt::modify_remote()
for the changes to take
effect.
§gpg_verify
a bool
sourcefn set_homepage(&self, homepage: &str)
fn set_homepage(&self, homepage: &str)
Sets the homepage of this remote.
Note: This is a local modification of this object, you must commit changes
using InstallationExt::modify_remote()
for the changes to take
effect.
§homepage
The new homepage
sourcefn set_icon(&self, icon: &str)
fn set_icon(&self, icon: &str)
Sets the homepage of this remote.
Note: This is a local modification of this object, you must commit changes
using InstallationExt::modify_remote()
for the changes to take
effect.
§icon
The new homepage
fn set_main_ref(&self, main_ref: &str)
sourcefn set_nodeps(&self, nodeps: bool)
fn set_nodeps(&self, nodeps: bool)
Sets the nodeps config of this remote. See is_nodeps()
.
Note: This is a local modification of this object, you must commit changes
using InstallationExt::modify_remote()
for the changes to take
effect.
§nodeps
a bool
sourcefn set_noenumerate(&self, noenumerate: bool)
fn set_noenumerate(&self, noenumerate: bool)
Sets the noenumeration config of this remote. See is_noenumerate()
.
Note: This is a local modification of this object, you must commit changes
using InstallationExt::modify_remote()
for the changes to take
effect.
§noenumerate
a bool
sourcefn set_prio(&self, prio: i32)
fn set_prio(&self, prio: i32)
Sets the prio config of this remote. See prio()
.
Note: This is a local modification of this object, you must commit changes
using InstallationExt::modify_remote()
for the changes to take
effect.
§prio
a bool
sourcefn set_title(&self, title: &str)
fn set_title(&self, title: &str)
Sets the repository title of this remote.
Note: This is a local modification of this object, you must commit changes
using InstallationExt::modify_remote()
for the changes to take
effect.
§title
The new title, or None
to unset
sourcefn set_url(&self, url: &str)
fn set_url(&self, url: &str)
Sets the repository URL of this remote.
Note: This is a local modification of this object, you must commit changes
using InstallationExt::modify_remote()
for the changes to take
effect.
§url
The new url
sourcefn set_name(&self, name: Option<&str>)
fn set_name(&self, name: Option<&str>)
Name of the remote, as used in configuration files and when interfacing
with OSTree. This is typically human readable, but could be generated, and
must conform to ostree_validate_remote_name()
. It should typically not be
presented in the UI.
sourcefn type_(&self) -> RemoteType
fn type_(&self) -> RemoteType
The type of the remote: whether it comes from static configuration files
(RemoteType::Static
) or has been dynamically found from the local
network or a mounted USB drive (RemoteType::Lan
,
RemoteType::Usb
). Dynamic remotes may be added and removed over
time.