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>,
}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 (the CLI’s
non-interactive default). Some(true) errors loudly when no
provider exists instead of silently skipping.
backup: bool§env: BTreeMap<String, String>§enable_groups: BTreeSet<String>§choose: BTreeMap<String, String>[[choice]] selections (choice name -> option name). Choices left
out fall back to their declared default.
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
Source§impl From<AddRequest> for AddRequest
impl From<AddRequest> for AddRequest
Source§fn from(r: AddRequest) -> Self
fn from(r: AddRequest) -> Self
Converts to this type from the input type.
Source§impl From<AddRequest> for AddRequest
impl From<AddRequest> for AddRequest
Source§fn from(r: AddRequest) -> Self
fn from(r: AddRequest) -> Self
Converts to this type from the input type.
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