#[non_exhaustive]pub struct ServiceAttachmentConsumerProjectLimit {
pub connection_limit: Option<u32>,
pub network_url: Option<String>,
pub project_id_or_num: Option<String>,
/* private fields */
}Available on crate feature
service-attachments only.Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.connection_limit: Option<u32>The value of the limit to set. For endpoint_url, the limit should be no more than 1.
network_url: Option<String>The network URL for the network to set the limit for.
project_id_or_num: Option<String>The project id or number for the project to set the limit for.
Implementations§
Source§impl ServiceAttachmentConsumerProjectLimit
impl ServiceAttachmentConsumerProjectLimit
pub fn new() -> Self
Sourcepub fn set_connection_limit<T>(self, v: T) -> Self
pub fn set_connection_limit<T>(self, v: T) -> Self
Sets the value of connection_limit.
§Example
ⓘ
let x = ServiceAttachmentConsumerProjectLimit::new().set_connection_limit(42_u32);Sourcepub fn set_or_clear_connection_limit<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_connection_limit<T>(self, v: Option<T>) -> Self
Sets or clears the value of connection_limit.
§Example
ⓘ
let x = ServiceAttachmentConsumerProjectLimit::new().set_or_clear_connection_limit(Some(42_u32));
let x = ServiceAttachmentConsumerProjectLimit::new().set_or_clear_connection_limit(None::<u32>);Sourcepub fn set_network_url<T>(self, v: T) -> Self
pub fn set_network_url<T>(self, v: T) -> Self
Sets the value of network_url.
§Example
ⓘ
let x = ServiceAttachmentConsumerProjectLimit::new().set_network_url("example");Sourcepub fn set_or_clear_network_url<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_network_url<T>(self, v: Option<T>) -> Self
Sets or clears the value of network_url.
§Example
ⓘ
let x = ServiceAttachmentConsumerProjectLimit::new().set_or_clear_network_url(Some("example"));
let x = ServiceAttachmentConsumerProjectLimit::new().set_or_clear_network_url(None::<String>);Sourcepub fn set_project_id_or_num<T>(self, v: T) -> Self
pub fn set_project_id_or_num<T>(self, v: T) -> Self
Sets the value of project_id_or_num.
§Example
ⓘ
let x = ServiceAttachmentConsumerProjectLimit::new().set_project_id_or_num("example");Sourcepub fn set_or_clear_project_id_or_num<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_project_id_or_num<T>(self, v: Option<T>) -> Self
Sets or clears the value of project_id_or_num.
§Example
ⓘ
let x = ServiceAttachmentConsumerProjectLimit::new().set_or_clear_project_id_or_num(Some("example"));
let x = ServiceAttachmentConsumerProjectLimit::new().set_or_clear_project_id_or_num(None::<String>);Trait Implementations§
Source§impl Clone for ServiceAttachmentConsumerProjectLimit
impl Clone for ServiceAttachmentConsumerProjectLimit
Source§fn clone(&self) -> ServiceAttachmentConsumerProjectLimit
fn clone(&self) -> ServiceAttachmentConsumerProjectLimit
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for ServiceAttachmentConsumerProjectLimit
impl Default for ServiceAttachmentConsumerProjectLimit
Source§fn default() -> ServiceAttachmentConsumerProjectLimit
fn default() -> ServiceAttachmentConsumerProjectLimit
Returns the “default value” for a type. Read more
Source§impl PartialEq for ServiceAttachmentConsumerProjectLimit
impl PartialEq for ServiceAttachmentConsumerProjectLimit
Source§fn eq(&self, other: &ServiceAttachmentConsumerProjectLimit) -> bool
fn eq(&self, other: &ServiceAttachmentConsumerProjectLimit) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ServiceAttachmentConsumerProjectLimit
Auto Trait Implementations§
impl Freeze for ServiceAttachmentConsumerProjectLimit
impl RefUnwindSafe for ServiceAttachmentConsumerProjectLimit
impl Send for ServiceAttachmentConsumerProjectLimit
impl Sync for ServiceAttachmentConsumerProjectLimit
impl Unpin for ServiceAttachmentConsumerProjectLimit
impl UnwindSafe for ServiceAttachmentConsumerProjectLimit
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