#[non_exhaustive]pub struct GetRequest {
pub cross_site_network: String,
pub project: String,
pub wire_group: String,
/* private fields */
}Available on crate feature
wire-groups only.Expand description
Synthetic request message for the get() method.
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.cross_site_network: String§project: StringProject ID for this request.
wire_group: StringName of the wire group resource to return.
Implementations§
Source§impl GetRequest
impl GetRequest
pub fn new() -> Self
Sourcepub fn set_cross_site_network<T: Into<String>>(self, v: T) -> Self
pub fn set_cross_site_network<T: Into<String>>(self, v: T) -> Self
Sets the value of cross_site_network.
§Example
ⓘ
let x = GetRequest::new().set_cross_site_network("example");Sourcepub fn set_project<T: Into<String>>(self, v: T) -> Self
pub fn set_project<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_wire_group<T: Into<String>>(self, v: T) -> Self
pub fn set_wire_group<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for GetRequest
impl Clone for GetRequest
Source§fn clone(&self) -> GetRequest
fn clone(&self) -> GetRequest
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 GetRequest
impl Debug for GetRequest
Source§impl Default for GetRequest
impl Default for GetRequest
Source§fn default() -> GetRequest
fn default() -> GetRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for GetRequest
impl PartialEq for GetRequest
impl StructuralPartialEq for GetRequest
Auto Trait Implementations§
impl Freeze for GetRequest
impl RefUnwindSafe for GetRequest
impl Send for GetRequest
impl Sync for GetRequest
impl Unpin for GetRequest
impl UnwindSafe for GetRequest
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