pub struct RemoteInfo {
pub name: String,
pub repository_url: String,
pub installation: Optional<InstallationInfo>,
repo_bytes: Optional<Vec<u8>>,
}
Fields§
§name: String
§repository_url: String
§installation: Optional<InstallationInfo>
§repo_bytes: Optional<Vec<u8>>
Implementations§
source§impl RemoteInfo
impl RemoteInfo
pub fn new(
name: String,
repository_url: String,
installation: Option<InstallationInfo>
) -> Self
pub fn from_flatpak(remote: &Remote, installation: &Installation) -> Self
pub fn from_repo_file(name: &str, bytes: Vec<u8>) -> Result<Self, WorkerError>
pub fn set_repo_bytes(&mut self, bytes: Vec<u8>)
Trait Implementations§
source§impl Clone for RemoteInfo
impl Clone for RemoteInfo
source§fn clone(&self) -> RemoteInfo
fn clone(&self) -> RemoteInfo
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 RemoteInfo
impl Debug for RemoteInfo
source§impl Default for RemoteInfo
impl Default for RemoteInfo
source§impl<'de> Deserialize<'de> for RemoteInfo
impl<'de> Deserialize<'de> for RemoteInfo
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 From<RemoteInfo> for Value
impl From<RemoteInfo> for Value
source§fn from(v: RemoteInfo) -> Self
fn from(v: RemoteInfo) -> Self
Converts to this type from the input type.
source§impl FromGlibPtrFull<*mut RemoteInfo> for RemoteInfo
impl FromGlibPtrFull<*mut RemoteInfo> for RemoteInfo
source§unsafe fn from_glib_full(ptr: *mut RemoteInfo) -> Self
unsafe fn from_glib_full(ptr: *mut RemoteInfo) -> Self
Safety Read more
source§impl FromGlibPtrNone<*const RemoteInfo> for RemoteInfo
impl FromGlibPtrNone<*const RemoteInfo> for RemoteInfo
source§unsafe fn from_glib_none(ptr: *const RemoteInfo) -> Self
unsafe fn from_glib_none(ptr: *const RemoteInfo) -> Self
Safety Read more
source§impl FromGlibPtrNone<*mut RemoteInfo> for RemoteInfo
impl FromGlibPtrNone<*mut RemoteInfo> for RemoteInfo
source§unsafe fn from_glib_none(ptr: *mut RemoteInfo) -> Self
unsafe fn from_glib_none(ptr: *mut RemoteInfo) -> Self
Safety Read more
source§impl<'a> FromValue<'a> for &'a RemoteInfo
impl<'a> FromValue<'a> for &'a RemoteInfo
§type Checker = GenericValueTypeOrNoneChecker<&'a RemoteInfo>
type Checker = GenericValueTypeOrNoneChecker<&'a RemoteInfo>
Value type checker.
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moresource§impl<'a> FromValue<'a> for RemoteInfo
impl<'a> FromValue<'a> for RemoteInfo
§type Checker = GenericValueTypeOrNoneChecker<RemoteInfo>
type Checker = GenericValueTypeOrNoneChecker<RemoteInfo>
Value type checker.
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moresource§impl HasParamSpec for RemoteInfo
impl HasParamSpec for RemoteInfo
type ParamSpec = ParamSpecBoxed
§type SetValue = RemoteInfo
type SetValue = RemoteInfo
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, RemoteInfo>
fn param_spec_builder() -> Self::BuilderFn
source§impl Hash for RemoteInfo
impl Hash for RemoteInfo
source§impl IntoGlibPtr<*mut RemoteInfo> for RemoteInfo
impl IntoGlibPtr<*mut RemoteInfo> for RemoteInfo
source§unsafe fn into_glib_ptr(self) -> *mut RemoteInfo
unsafe fn into_glib_ptr(self) -> *mut RemoteInfo
Transfer: full.
source§impl PartialEq<RemoteInfo> for RemoteInfo
impl PartialEq<RemoteInfo> for RemoteInfo
source§fn eq(&self, other: &RemoteInfo) -> bool
fn eq(&self, other: &RemoteInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for RemoteInfo
impl Serialize for RemoteInfo
source§impl StaticType for RemoteInfo
impl StaticType for RemoteInfo
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl<'a> ToGlibPtr<'a, *const RemoteInfo> for RemoteInfo
impl<'a> ToGlibPtr<'a, *const RemoteInfo> for RemoteInfo
type Storage = PhantomData<&'a RemoteInfo>
source§fn to_glib_none(&'a self) -> Stash<'a, *const RemoteInfo, Self>
fn to_glib_none(&'a self) -> Stash<'a, *const RemoteInfo, Self>
Transfer: none. Read more
source§fn to_glib_full(&self) -> *const RemoteInfo
fn to_glib_full(&self) -> *const RemoteInfo
Transfer: full. Read more
§fn to_glib_container(&'a self) -> Stash<'a, P, Self>
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
Transfer: container. Read more
source§impl<'a> ToGlibPtr<'a, *mut RemoteInfo> for RemoteInfo
impl<'a> ToGlibPtr<'a, *mut RemoteInfo> for RemoteInfo
type Storage = PhantomData<&'a RemoteInfo>
source§fn to_glib_none(&'a self) -> Stash<'a, *mut RemoteInfo, Self>
fn to_glib_none(&'a self) -> Stash<'a, *mut RemoteInfo, Self>
Transfer: none. Read more
source§fn to_glib_full(&self) -> *mut RemoteInfo
fn to_glib_full(&self) -> *mut RemoteInfo
Transfer: full. Read more
§fn to_glib_container(&'a self) -> Stash<'a, P, Self>
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
Transfer: container. Read more
source§impl ToValue for RemoteInfo
impl ToValue for RemoteInfo
source§impl ToValueOptional for RemoteInfo
impl ToValueOptional for RemoteInfo
source§fn to_value_optional(s: Option<&Self>) -> Value
fn to_value_optional(s: Option<&Self>) -> Value
Convert an
Option
to a Value
.source§impl TryInto<Remote> for RemoteInfo
impl TryInto<Remote> for RemoteInfo
source§impl Type for RemoteInfo
impl Type for RemoteInfo
source§impl ValueType for RemoteInfo
impl ValueType for RemoteInfo
§type Type = RemoteInfo
type Type = RemoteInfo
Type to get the
Type
from. Read moreimpl Eq for RemoteInfo
impl StructuralEq for RemoteInfo
impl StructuralPartialEq for RemoteInfo
impl ValueTypeOptional for RemoteInfo
Auto Trait Implementations§
impl RefUnwindSafe for RemoteInfo
impl Send for RemoteInfo
impl Sync for RemoteInfo
impl Unpin for RemoteInfo
impl UnwindSafe for RemoteInfo
Blanket Implementations§
§impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de> + ?Sized,
impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de> + ?Sized,
§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
§impl<T> DynamicType for Twhere
T: Type + ?Sized,
impl<T> DynamicType for Twhere
T: Type + ?Sized,
§fn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoClosureReturnValue for Twhere
T: Into<Value>,
impl<T> IntoClosureReturnValue for Twhere
T: Into<Value>,
fn into_closure_return_value(self) -> Option<Value>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.
§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
§impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.