Skip to main content

AssetObject

Struct AssetObject 

Source
pub struct AssetObject {
    id: RefCell<String>,
    filename: RefCell<String>,
    mime_type: RefCell<String>,
    created_at: RefCell<String>,
    asset_type: RefCell<String>,
    sync_state: Cell<u32>,
    thumbhash: RefCell<Option<String>>,
    local_path: RefCell<String>,
    remote_id: RefCell<String>,
    width: Cell<u32>,
    height: Cell<u32>,
}

Fields§

§id: RefCell<String>

Immich asset UUID.

§filename: RefCell<String>

Original filename on the server.

§mime_type: RefCell<String>

MIME type (e.g. “image/jpeg”).

§created_at: RefCell<String>

ISO 8601 creation timestamp from file metadata.

§asset_type: RefCell<String>

“IMAGE” or “VIDEO”.

§sync_state: Cell<u32>

Sync state indicator: 0 = remote only, 1 = local only, 2 = both.

§thumbhash: RefCell<Option<String>>

Optional thumbhash for placeholder rendering (base64-encoded).

§local_path: RefCell<String>

Absolute path to the local copy on disk (LocalAsset, or matched remote with a local sibling); empty string when none.

§remote_id: RefCell<String>

Immich asset id when this row corresponds to a remote asset (or has been matched to one via checksum); empty string otherwise.

§width: Cell<u32>

Native pixel width of the asset; 0 = unknown (settled later from thumbnail decode for sources without EXIF metadata).

§height: Cell<u32>

Native pixel height of the asset; 0 = unknown.

Implementations§

Source§

impl AssetObject

Source

fn register_type()

Registers the type only once.

Source§

impl AssetObject

Source

pub fn downgrade(&self) -> <Self as Downgrade>::Weak

Trait Implementations§

Source§

impl Default for AssetObject

Source§

fn default() -> AssetObject

Returns the “default value” for a type. Read more
Source§

impl DerivedObjectProperties for AssetObject

Source§

fn derived_properties() -> &'static [ParamSpec]

Properties installed for this type.
Source§

fn derived_property(&self, id: usize, pspec: &ParamSpec) -> Value

Similar to ObjectImpl but auto-generated by the Properties macro to allow handling more complex use-cases.
Source§

fn derived_set_property(&self, id: usize, value: &Value, pspec: &ParamSpec)

Similar to ObjectImpl but auto-generated by the Properties macro to allow handling more complex use-cases.
Source§

impl ObjectImpl for AssetObject

Source§

fn properties() -> &'static [ParamSpec]

Properties installed for this type.
Source§

fn set_property(&self, id: usize, value: &Value, pspec: &ParamSpec)

Property setter. Read more
Source§

fn property(&self, id: usize, pspec: &ParamSpec) -> Value

Property getter. Read more
§

fn signals() -> &'static [Signal]

Signals installed for this type.
§

fn constructed(&self)

Constructed. Read more
§

fn dispose(&self)

Disposes of the object. Read more
§

fn notify(&self, pspec: &ParamSpec)

Function to be called when property change is notified for with self.notify("property").
§

fn dispatch_properties_changed(&self, pspecs: &[ParamSpec])

Source§

impl ObjectSubclass for AssetObject

Source§

const NAME: &'static str = "MimickAssetObject"

GObject type name. Read more
Source§

type ParentType = Object

Parent Rust type to inherit from.
Source§

type Interfaces = ()

List of interfaces implemented by this type.
Source§

type Class = ClassStruct<AssetObject>

The C class struct. Read more
Source§

type Instance = InstanceStruct<AssetObject>

The C instance struct. Read more
Source§

type Type = AssetObject

Wrapper around this subclass defined with wrapper!
Source§

fn new() -> Self

Constructor. Read more
§

const ABSTRACT: bool = false

If this subclass is an abstract class or not. Read more
§

const FINAL: bool = false

If this subclass is a final class or not. Read more
§

const DEPRECATED: bool = false

If this subclass is a deprecated class or not. Read more
§

const ALLOW_NAME_CONFLICT: bool = false

Allow name conflicts for this class. Read more
§

fn type_init(_type_: &mut InitializingType<Self>)

Additional type initialization. Read more
§

fn class_init(_klass: &mut Self::Class)

Class initialization. Read more
§

fn with_class(_klass: &Self::Class) -> Self

Constructor. Read more
§

fn instance_init(_obj: &InitializingObject<Self>)

Performs additional instance initialization. Read more
Source§

impl ObjectSubclassType for AssetObject

Source§

fn type_data() -> NonNull<TypeData>

Storage for the type-specific data used during registration.
Source§

fn type_() -> Type

Returns the glib::Type ID of the subclass. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T, Ctx> BundleDefault<Ctx> for T
where T: Default,

§

fn default_with_context(_: Ctx) -> T

Creates a default value with the given context.
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<T> NoneValue for T
where T: Default,

§

type NoneType = T

§

fn null_value() -> T

The none-equivalent value.
§

impl<T> ObjectImplExt for T
where T: ObjectImpl,

§

fn parent_constructed(&self)

Chain up to the parent class’ implementation of glib::Object::constructed().
§

fn parent_notify(&self, pspec: &ParamSpec)

Chain up to the parent class’ implementation of glib::Object::notify().
§

fn parent_dispatch_properties_changed(&self, pspecs: &[ParamSpec])

Chain up to the parent class’ implementation of glib::Object::dispatch_properties_changed().
§

fn signal_chain_from_overridden( &self, token: &SignalClassHandlerToken, values: &[Value], ) -> Option<Value>

Chain up to parent class signal handler.
§

impl<T> ObjectSubclassExt for T
where T: ObjectSubclass,

§

fn obj(&self) -> BorrowedObject<'_, <T as ObjectSubclass>::Type>

Returns the corresponding object instance. Read more
§

fn from_obj(obj: &<T as ObjectSubclass>::Type) -> &T

Returns the implementation from an instance. Read more
§

fn ref_counted(&self) -> ObjectImplRef<T>

Returns a new reference-counted wrapper around self.
§

fn instance_data<U>(&self, type_: Type) -> Option<&U>
where U: Any + Send + Sync + 'static,

Returns a pointer to the instance implementation specific data. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more