pub struct AddIpRestrictionForSubAccountApiKeyParamsBuilder { /* private fields */ }Expand description
Builder for AddIpRestrictionForSubAccountApiKeyParams.
Implementations§
Source§impl AddIpRestrictionForSubAccountApiKeyParamsBuilder
impl AddIpRestrictionForSubAccountApiKeyParamsBuilder
Sourcepub fn sub_account_api_key<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn sub_account_api_key<VALUE: Into<String>>(self, value: VALUE) -> Self
The sub_account_api_key parameter.
This field is **required.
Sourcepub fn status<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn status<VALUE: Into<String>>(self, value: VALUE) -> Self
IP Restriction status. 1 = IP Unrestricted. 2 = Restrict access to trusted IPs only.
This field is **required.
Sourcepub fn ip_address<VALUE: Into<Option<String>>>(self, value: VALUE) -> Self
pub fn ip_address<VALUE: Into<Option<String>>>(self, value: VALUE) -> Self
Insert static IP in batch, separated by commas.
This field is **optional.
Sourcepub fn recv_window<VALUE: Into<Option<i64>>>(self, value: VALUE) -> Self
pub fn recv_window<VALUE: Into<Option<i64>>>(self, value: VALUE) -> Self
The recv_window parameter.
This field is **optional.
Sourcepub fn build(
self,
) -> Result<AddIpRestrictionForSubAccountApiKeyParams, ParamBuildError>
pub fn build( self, ) -> Result<AddIpRestrictionForSubAccountApiKeyParams, ParamBuildError>
Builds a new AddIpRestrictionForSubAccountApiKeyParams.
§Errors
If a required field has not been initialized.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AddIpRestrictionForSubAccountApiKeyParamsBuilder
impl RefUnwindSafe for AddIpRestrictionForSubAccountApiKeyParamsBuilder
impl Send for AddIpRestrictionForSubAccountApiKeyParamsBuilder
impl Sync for AddIpRestrictionForSubAccountApiKeyParamsBuilder
impl Unpin for AddIpRestrictionForSubAccountApiKeyParamsBuilder
impl UnsafeUnpin for AddIpRestrictionForSubAccountApiKeyParamsBuilder
impl UnwindSafe for AddIpRestrictionForSubAccountApiKeyParamsBuilder
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