pub struct OrgOptions {Show 13 fields
pub cpus: Option<u32>,
pub memory: Option<String>,
pub disk: Option<String>,
pub instances: Option<u32>,
pub default_cpus: Option<u32>,
pub default_memory: Option<String>,
pub bind_roots: Vec<PathBuf>,
pub egress: Option<Vec<Egress>>,
pub domains: Option<Vec<String>>,
pub ingress: Option<String>,
pub cloudflare_account: Option<String>,
pub cloudflare_zone: Option<String>,
pub udp: Option<Vec<SocketAddr>>,
}Expand description
Limits for an org as a whole (the incus project’s limits) and the defaults each instance gets when its spec sets none.
Fields§
§cpus: Option<u32>Total CPUs across the org’s instances.
memory: Option<String>Total memory, e.g. 16GiB.
disk: Option<String>Total disk, e.g. 100GiB.
instances: Option<u32>§default_cpus: Option<u32>Per-instance defaults (incus requires one once the project is limited).
default_memory: Option<String>§bind_roots: Vec<PathBuf>Host directories the org’s instances may bind-mount from.
egress: Option<Vec<Egress>>Private destinations the org may reach despite the default deny.
None keeps what the org has; Some replaces it.
domains: Option<Vec<String>>Domain suffixes the org’s services may serve; Some(empty) clears,
None keeps.
ingress: Option<String>caddy or cloudflare-tunnel; None keeps.
cloudflare_account: Option<String>Cloudflare account and zone ids for the tunnel provider’s API calls (Some("") clears).
cloudflare_zone: Option<String>§udp: Option<Vec<SocketAddr>>UDP ports (IP:PORT) the org’s stacks may publish (allowed_udp);
Some(empty) clears, None keeps.
Trait Implementations§
Source§impl Clone for OrgOptions
impl Clone for OrgOptions
Source§impl Debug for OrgOptions
impl Debug for OrgOptions
Source§impl Default for OrgOptions
impl Default for OrgOptions
Source§impl<'de> Deserialize<'de> for OrgOptions
impl<'de> Deserialize<'de> for OrgOptions
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 PartialEq for OrgOptions
impl PartialEq for OrgOptions
Source§impl Serialize for OrgOptions
impl Serialize for OrgOptions
impl StructuralPartialEq for OrgOptions
Auto Trait Implementations§
impl Freeze for OrgOptions
impl RefUnwindSafe for OrgOptions
impl Send for OrgOptions
impl Sync for OrgOptions
impl Unpin for OrgOptions
impl UnsafeUnpin for OrgOptions
impl UnwindSafe for OrgOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more