Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Threema/libthreema/lib/src/model/   (Social Medium ©)  Datei vom 26.9.2026 mit Größe 777 B image not shown  

Quelle  profile.rs   Sprache: Rust

 

//! Contact or user profile related structs.

use educe::Educe;

use crate::utils::debug::debug_slice_length;

/// Media type of a profile picture image.
/// TODO(SE-625): Remove it and reuse the enum from protobuf.
#[derive(Clone, Debug)]
#[cfg_attr(test, derive(PartialEq))]
#[cfg_attr(feature = "uniffi", derive(uniffi::Enum))]
pub enum ProfilePictureMediaType {
    /// JPEG.
    Jpeg,
}

/// A profile picture.
#[derive(Clone, Educe)]
#[educe(Debug)]
#[cfg_attr(test, derive(PartialEq))]
#[cfg_attr(feature = "uniffi", derive(uniffi::Record))]
pub struct ProfilePicture {
    /// Media type of the profile picture.
    pub media_type: ProfilePictureMediaType,

    /// Bytes of the profile picture.
    #[educe(Debug(method(debug_slice_length)))]
    pub data: Vec<u8>,
}

Messung
CHZG
869610093

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet am  2026-11-04) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover


Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.