pub struct AddRequest {
pub service: String,
pub exposure: ExposureRequest,
pub auth: AuthRequested,
pub smtp: Option<bool>,
pub backup: bool,
pub env: BTreeMap<String, String>,
pub enable_groups: BTreeSet<String>,
pub choose: BTreeMap<String, String>,
}Expand description
Install and start a service.
Fields§
§service: StringRegistry ref (“forgejo”, “acme/forgejo”) or a local project path.
exposure: ExposureRequest§auth: AuthRequested§smtp: Option<bool>None = wire SMTP iff a provider is configured; Some(true) errors
when none exists rather than silently skipping.
backup: bool§env: BTreeMap<String, String>§enable_groups: BTreeSet<String>§choose: BTreeMap<String, String>[[choice]] selections (choice -> option); unset choices use defaults.
Implementations§
Trait Implementations§
Source§impl Clone for AddRequest
impl Clone for AddRequest
Source§fn clone(&self) -> AddRequest
fn clone(&self) -> AddRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AddRequest
impl Debug for AddRequest
Source§impl<'de> Deserialize<'de> for AddRequest
impl<'de> Deserialize<'de> for AddRequest
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
Auto Trait Implementations§
impl Freeze for AddRequest
impl RefUnwindSafe for AddRequest
impl Send for AddRequest
impl Sync for AddRequest
impl Unpin for AddRequest
impl UnsafeUnpin for AddRequest
impl UnwindSafe for AddRequest
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