pub struct AddIpRestrictionForSubAccountApiKeyParams {
pub email: String,
pub sub_account_api_key: String,
pub status: i64,
pub ip_address: Option<String>,
pub recv_window: Option<i64>,
}Expand description
Request parameters for the [add_ip_restriction_for_sub_account_api_key] operation.
This struct holds all of the inputs you can pass when calling
add_ip_restriction_for_sub_account_api_key.
Fields§
§email: StringThe email parameter.
This field is **required.
sub_account_api_key: StringThe sub_account_api_key parameter.
This field is **required.
status: i64IP Restriction status. 1 = IP Unrestricted. 2 = Restrict access to trusted IPs only.
This field is **required.
ip_address: Option<String>Insert static IP in batch, separated by commas.
This field is **optional.
recv_window: Option<i64>The recv_window parameter.
This field is **optional.
Implementations§
Source§impl AddIpRestrictionForSubAccountApiKeyParams
impl AddIpRestrictionForSubAccountApiKeyParams
Sourcepub fn builder(
email: String,
sub_account_api_key: String,
status: i64,
) -> AddIpRestrictionForSubAccountApiKeyParamsBuilder
pub fn builder( email: String, sub_account_api_key: String, status: i64, ) -> AddIpRestrictionForSubAccountApiKeyParamsBuilder
Create a builder for [add_ip_restriction_for_sub_account_api_key].
Required parameters:
email— Stringsub_account_api_key— Stringstatus— IP Restriction status. 1 = IP Unrestricted. 2 = Restrict access to trusted IPs only.
Trait Implementations§
Source§impl Clone for AddIpRestrictionForSubAccountApiKeyParams
impl Clone for AddIpRestrictionForSubAccountApiKeyParams
Source§fn clone(&self) -> AddIpRestrictionForSubAccountApiKeyParams
fn clone(&self) -> AddIpRestrictionForSubAccountApiKeyParams
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<'de> Deserialize<'de> for AddIpRestrictionForSubAccountApiKeyParams
impl<'de> Deserialize<'de> for AddIpRestrictionForSubAccountApiKeyParams
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 AddIpRestrictionForSubAccountApiKeyParams
impl RefUnwindSafe for AddIpRestrictionForSubAccountApiKeyParams
impl Send for AddIpRestrictionForSubAccountApiKeyParams
impl Sync for AddIpRestrictionForSubAccountApiKeyParams
impl Unpin for AddIpRestrictionForSubAccountApiKeyParams
impl UnsafeUnpin for AddIpRestrictionForSubAccountApiKeyParams
impl UnwindSafe for AddIpRestrictionForSubAccountApiKeyParams
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