pub enum TargetSystemCreateRequest {
Automatic {
name: String,
kind: TargetSystemKind,
password_policy: PasswordPolicy,
supports_session_termination: bool,
},
Manual {
name: String,
password_policy: PasswordPolicy,
},
}Expand description
Request to create or update a target system. Method and kind can’t change after creation, but
TargetSystemsClient::update still takes the full shape.
Serializes with a method discriminant matching the server’s own.
Variants§
Automatic
A connector rotates the credential by writing it into the target system.
Fields
kind: TargetSystemKindThe integration that performs the rotation.
password_policy: PasswordPolicyConstraints the connector generates the new credential under.
Manual
An operator rotates the credential out of band and records that they did.
Fields
password_policy: PasswordPolicyThe rules the operator is expected to follow by hand; nothing enforces them, since no connector runs a manual rotation.
Implementations§
Source§impl TargetSystemCreateRequest
impl TargetSystemCreateRequest
Sourcepub fn password_policy(&self) -> &PasswordPolicy
pub fn password_policy(&self) -> &PasswordPolicy
The password policy, whichever method this request carries.
Sourcepub fn method(&self) -> TargetSystemMethod
pub fn method(&self) -> TargetSystemMethod
The rotation method this request carries: never TargetSystemMethod::Unknown.
Sourcepub fn kind(&self) -> Option<TargetSystemKind>
pub fn kind(&self) -> Option<TargetSystemKind>
The integration kind. None for a Manual request.
Sourcepub fn supports_session_termination(&self) -> Option<bool>
pub fn supports_session_termination(&self) -> Option<bool>
Whether the integration can terminate sessions after rotating. None for a
Manual request.
Trait Implementations§
Source§impl Clone for TargetSystemCreateRequest
impl Clone for TargetSystemCreateRequest
Source§fn clone(&self) -> TargetSystemCreateRequest
fn clone(&self) -> TargetSystemCreateRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TargetSystemCreateRequest
impl Debug for TargetSystemCreateRequest
Source§impl<'de> Deserialize<'de> for TargetSystemCreateRequest
impl<'de> Deserialize<'de> for TargetSystemCreateRequest
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>,
Source§impl From<TargetSystemCreateRequest> for JsValuewhere
TargetSystemCreateRequest: Serialize,
impl From<TargetSystemCreateRequest> for JsValuewhere
TargetSystemCreateRequest: Serialize,
Source§fn from(value: TargetSystemCreateRequest) -> Self
fn from(value: TargetSystemCreateRequest) -> Self
Source§impl FromWasmAbi for TargetSystemCreateRequestwhere
Self: DeserializeOwned,
impl FromWasmAbi for TargetSystemCreateRequestwhere
Self: DeserializeOwned,
Source§impl IntoWasmAbi for &TargetSystemCreateRequestwhere
TargetSystemCreateRequest: Serialize,
impl IntoWasmAbi for &TargetSystemCreateRequestwhere
TargetSystemCreateRequest: Serialize,
Source§impl OptionFromWasmAbi for TargetSystemCreateRequestwhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for TargetSystemCreateRequestwhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for TargetSystemCreateRequestwhere
TargetSystemCreateRequest: Serialize,
impl OptionIntoWasmAbi for TargetSystemCreateRequestwhere
TargetSystemCreateRequest: Serialize,
Source§impl RefFromWasmAbi for TargetSystemCreateRequestwhere
Self: DeserializeOwned,
impl RefFromWasmAbi for TargetSystemCreateRequestwhere
Self: DeserializeOwned,
Source§type Abi = <JsType as RefFromWasmAbi>::Abi
type Abi = <JsType as RefFromWasmAbi>::Abi
Self are recovered from.Source§type Anchor = SelfOwner<TargetSystemCreateRequest>
type Anchor = SelfOwner<TargetSystemCreateRequest>
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.impl StructuralPartialEq for TargetSystemCreateRequest
Source§impl TryFrom<&TargetSystemCreateRequest> for PreparedTargetSystem
impl TryFrom<&TargetSystemCreateRequest> for PreparedTargetSystem
Source§type Error = RotationError
type Error = RotationError
Source§impl Tsify for TargetSystemCreateRequest
impl Tsify for TargetSystemCreateRequest
const DECL: &'static str = "/**\n * Request to create or update a target system. Method and kind can\\\'t change after creation, but\n * [`TargetSystemsClient::update`] still takes the full shape.\n *\n * Serializes with a `method` discriminant matching the server\\\'s own.\n */\nexport type TargetSystemCreateRequest = { method: \"automatic\"; name: string; kind: TargetSystemKind; passwordPolicy: PasswordPolicy; supportsSessionTermination: boolean } | { method: \"manual\"; name: string; passwordPolicy: PasswordPolicy };"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Source§impl VectorFromWasmAbi for TargetSystemCreateRequestwhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for TargetSystemCreateRequestwhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for TargetSystemCreateRequestwhere
TargetSystemCreateRequest: Serialize,
impl VectorIntoWasmAbi for TargetSystemCreateRequestwhere
TargetSystemCreateRequest: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Auto Trait Implementations§
impl Freeze for TargetSystemCreateRequest
impl RefUnwindSafe for TargetSystemCreateRequest
impl Send for TargetSystemCreateRequest
impl Sync for TargetSystemCreateRequest
impl Unpin for TargetSystemCreateRequest
impl UnsafeUnpin for TargetSystemCreateRequest
impl UnwindSafe for TargetSystemCreateRequest
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Arc<> Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreimpl<T> Persist for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.