pub struct TailscaleConfig {
pub admin_api_key: String,
pub tailnet: Option<String>,
}Expand description
Admin API token + cached tailnet metadata for Tailscale Services.
Stored in preferences.toml under [tailscale] so the user pastes the
admin token once and every subsequent --tailscale install reuses
it for service definition + ACL setup. Same file mode (0600) as
SMTP/auth credentials.
Fields§
§admin_api_key: StringAdmin API token (tskey-api-…). Used to manage Tailscale
Services: define services, update ACL with auto-approval, tag
the host. Stored locally because every --tailscale install
(and every --tailscale removal) calls the API.
tailnet: Option<String>Cached tailnet suffix (e.g. cobbler-tuna.ts.net). Resolved
lazily from tailscale status --json and remembered so we don’t
re-shell out on every install.
Trait Implementations§
Source§impl Clone for TailscaleConfig
impl Clone for TailscaleConfig
Source§fn clone(&self) -> TailscaleConfig
fn clone(&self) -> TailscaleConfig
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 TailscaleConfig
impl Debug for TailscaleConfig
Source§impl<'de> Deserialize<'de> for TailscaleConfig
impl<'de> Deserialize<'de> for TailscaleConfig
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 TailscaleConfig
impl RefUnwindSafe for TailscaleConfig
impl Send for TailscaleConfig
impl Sync for TailscaleConfig
impl Unpin for TailscaleConfig
impl UnsafeUnpin for TailscaleConfig
impl UnwindSafe for TailscaleConfig
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