#[non_exhaustive]pub struct PscAutomatedEndpoints {
pub project_id: String,
pub network: String,
pub match_address: String,
/* private fields */
}Available on crate feature
index-endpoint-service only.Expand description
PscAutomatedEndpoints defines the output of the forwarding rule automatically created by each PscAutomationConfig.
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.project_id: StringCorresponding project_id in pscAutomationConfigs
network: StringCorresponding network in pscAutomationConfigs.
match_address: StringIp Address created by the automated forwarding rule.
Implementations§
Source§impl PscAutomatedEndpoints
impl PscAutomatedEndpoints
pub fn new() -> Self
Sourcepub fn set_project_id<T: Into<String>>(self, v: T) -> Self
pub fn set_project_id<T: Into<String>>(self, v: T) -> Self
Sets the value of project_id.
§Example
ⓘ
let x = PscAutomatedEndpoints::new().set_project_id("example");Sourcepub fn set_network<T: Into<String>>(self, v: T) -> Self
pub fn set_network<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_match_address<T: Into<String>>(self, v: T) -> Self
pub fn set_match_address<T: Into<String>>(self, v: T) -> Self
Sets the value of match_address.
§Example
ⓘ
let x = PscAutomatedEndpoints::new().set_match_address("example");Trait Implementations§
Source§impl Clone for PscAutomatedEndpoints
impl Clone for PscAutomatedEndpoints
Source§fn clone(&self) -> PscAutomatedEndpoints
fn clone(&self) -> PscAutomatedEndpoints
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 Debug for PscAutomatedEndpoints
impl Debug for PscAutomatedEndpoints
Source§impl Default for PscAutomatedEndpoints
impl Default for PscAutomatedEndpoints
Source§fn default() -> PscAutomatedEndpoints
fn default() -> PscAutomatedEndpoints
Returns the “default value” for a type. Read more
Source§impl Message for PscAutomatedEndpoints
impl Message for PscAutomatedEndpoints
Source§impl PartialEq for PscAutomatedEndpoints
impl PartialEq for PscAutomatedEndpoints
impl StructuralPartialEq for PscAutomatedEndpoints
Auto Trait Implementations§
impl Freeze for PscAutomatedEndpoints
impl RefUnwindSafe for PscAutomatedEndpoints
impl Send for PscAutomatedEndpoints
impl Sync for PscAutomatedEndpoints
impl Unpin for PscAutomatedEndpoints
impl UnwindSafe for PscAutomatedEndpoints
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