pub struct LockInitParams {
pub trusted_keys: Vec<String>,
pub gen_disablements: u32,
pub gen_disablement_for_support: bool,
}Fields§
§trusted_keys: Vec<String>The tailnet-lock keys to trust initially, each beginning with tlpub:.
This node’s own key, which tailscale_lock_status reports, has to be
among them or the client refuses. At least one.
gen_disablements: u32How many disablement secrets to mint. At least one — the client refuses a lock with no way back — and they are returned only by this call.
gen_disablement_for_support: boolAlso mint a disablement secret and send it to Tailscale, so that Tailscale support can disable the lock. Recommended by the client, and off unless asked for, because it hands a third party the way back.
Trait Implementations§
Source§impl Debug for LockInitParams
impl Debug for LockInitParams
Source§impl<'de> Deserialize<'de> for LockInitParams
impl<'de> Deserialize<'de> for LockInitParams
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 JsonSchema for LockInitParams
impl JsonSchema for LockInitParams
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for LockInitParams
impl RefUnwindSafe for LockInitParams
impl Send for LockInitParams
impl Sync for LockInitParams
impl Unpin for LockInitParams
impl UnsafeUnpin for LockInitParams
impl UnwindSafe for LockInitParams
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