pub struct PackageInfo {
pub ref_: String,
pub remote: RemoteInfo,
}
Fields§
§ref_: String
§remote: RemoteInfo
Implementations§
source§impl PackageInfo
impl PackageInfo
pub fn new(ref_: String, remote: RemoteInfo) -> Self
pub fn from_flatpak(
installed_ref: &InstalledRef,
remote: &Remote,
installation: &Installation
) -> Self
Trait Implementations§
source§impl Clone for PackageInfo
impl Clone for PackageInfo
source§fn clone(&self) -> PackageInfo
fn clone(&self) -> PackageInfo
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 PackageInfo
impl Debug for PackageInfo
source§impl Default for PackageInfo
impl Default for PackageInfo
source§fn default() -> PackageInfo
fn default() -> PackageInfo
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PackageInfo
impl<'de> Deserialize<'de> for PackageInfo
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<PackageInfo> for Value
impl From<PackageInfo> for Value
source§fn from(v: PackageInfo) -> Self
fn from(v: PackageInfo) -> Self
Converts to this type from the input type.
source§impl FromGlibPtrFull<*mut PackageInfo> for PackageInfo
impl FromGlibPtrFull<*mut PackageInfo> for PackageInfo
source§unsafe fn from_glib_full(ptr: *mut PackageInfo) -> Self
unsafe fn from_glib_full(ptr: *mut PackageInfo) -> Self
Safety Read more
source§impl FromGlibPtrNone<*const PackageInfo> for PackageInfo
impl FromGlibPtrNone<*const PackageInfo> for PackageInfo
source§unsafe fn from_glib_none(ptr: *const PackageInfo) -> Self
unsafe fn from_glib_none(ptr: *const PackageInfo) -> Self
Safety Read more
source§impl FromGlibPtrNone<*mut PackageInfo> for PackageInfo
impl FromGlibPtrNone<*mut PackageInfo> for PackageInfo
source§unsafe fn from_glib_none(ptr: *mut PackageInfo) -> Self
unsafe fn from_glib_none(ptr: *mut PackageInfo) -> Self
Safety Read more
source§impl<'a> FromValue<'a> for &'a PackageInfo
impl<'a> FromValue<'a> for &'a PackageInfo
§type Checker = GenericValueTypeOrNoneChecker<&'a PackageInfo>
type Checker = GenericValueTypeOrNoneChecker<&'a PackageInfo>
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 PackageInfo
impl<'a> FromValue<'a> for PackageInfo
§type Checker = GenericValueTypeOrNoneChecker<PackageInfo>
type Checker = GenericValueTypeOrNoneChecker<PackageInfo>
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 PackageInfo
impl HasParamSpec for PackageInfo
type ParamSpec = ParamSpecBoxed
§type SetValue = PackageInfo
type SetValue = PackageInfo
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, PackageInfo>
fn param_spec_builder() -> Self::BuilderFn
source§impl Hash for PackageInfo
impl Hash for PackageInfo
source§impl IntoGlibPtr<*mut PackageInfo> for PackageInfo
impl IntoGlibPtr<*mut PackageInfo> for PackageInfo
source§unsafe fn into_glib_ptr(self) -> *mut PackageInfo
unsafe fn into_glib_ptr(self) -> *mut PackageInfo
Transfer: full.
source§impl PartialEq<PackageInfo> for PackageInfo
impl PartialEq<PackageInfo> for PackageInfo
source§fn eq(&self, other: &PackageInfo) -> bool
fn eq(&self, other: &PackageInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PackageInfo
impl Serialize for PackageInfo
source§impl StaticType for PackageInfo
impl StaticType for PackageInfo
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl<'a> ToGlibPtr<'a, *const PackageInfo> for PackageInfo
impl<'a> ToGlibPtr<'a, *const PackageInfo> for PackageInfo
type Storage = PhantomData<&'a PackageInfo>
source§fn to_glib_none(&'a self) -> Stash<'a, *const PackageInfo, Self>
fn to_glib_none(&'a self) -> Stash<'a, *const PackageInfo, Self>
Transfer: none. Read more
source§fn to_glib_full(&self) -> *const PackageInfo
fn to_glib_full(&self) -> *const PackageInfo
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 PackageInfo> for PackageInfo
impl<'a> ToGlibPtr<'a, *mut PackageInfo> for PackageInfo
type Storage = PhantomData<&'a PackageInfo>
source§fn to_glib_none(&'a self) -> Stash<'a, *mut PackageInfo, Self>
fn to_glib_none(&'a self) -> Stash<'a, *mut PackageInfo, Self>
Transfer: none. Read more
source§fn to_glib_full(&self) -> *mut PackageInfo
fn to_glib_full(&self) -> *mut PackageInfo
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 PackageInfo
impl ToValue for PackageInfo
source§impl ToValueOptional for PackageInfo
impl ToValueOptional for PackageInfo
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 Type for PackageInfo
impl Type for PackageInfo
source§impl ValueType for PackageInfo
impl ValueType for PackageInfo
§type Type = PackageInfo
type Type = PackageInfo
Type to get the
Type
from. Read moreimpl Eq for PackageInfo
impl StructuralEq for PackageInfo
impl StructuralPartialEq for PackageInfo
impl ValueTypeOptional for PackageInfo
Auto Trait Implementations§
impl RefUnwindSafe for PackageInfo
impl Send for PackageInfo
impl Sync for PackageInfo
impl Unpin for PackageInfo
impl UnwindSafe for PackageInfo
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
.