Skip to repository content

tenant.openagents/omega

No repository description is available.

OpenAgents Git authority 2026-07-28T05:04:18.942Z Public web read
NIP-34 coordinate30617:7649603503856e5148d571eac2766b288a8ff1e9e35d380337a1d2b0015b4f92:omega
MaintainersHidden in public view
References2 branches · 1 tag
Read-only clonegit clone https://openagents.com/git/tenant.openagents/omega.git
Browse files

image_viewer_settings.rs

20 lines · 542 B · rust
1pub use settings::ImageFileSizeUnit;
2use settings::{RegisterSetting, Settings};
3
4/// The settings for the image viewer.
5#[derive(Clone, Debug, Default, RegisterSetting)]
6pub struct ImageViewerSettings {
7    /// The unit to use for displaying image file sizes.
8    ///
9    /// Default: "binary"
10    pub unit: ImageFileSizeUnit,
11}
12
13impl Settings for ImageViewerSettings {
14    fn from_settings(content: &settings::SettingsContent) -> Self {
15        Self {
16            unit: content.image_viewer.clone().unwrap().unit.unwrap(),
17        }
18    }
19}
20
Served at tenant.openagents/omega Member data and write actions are omitted.