pub struct S2Endpoints {
pub account: Authority,
pub basin: BasinEndpoint,
}
Expand description
Endpoints for the S2 environment.
You can find the S2 endpoints in our documentation.
Fields§
§account: Authority
Used by AccountService
requests.
basin: BasinEndpoint
Used by BasinService
and StreamService
requests.
Implementations§
Source§impl S2Endpoints
impl S2Endpoints
Sourcepub fn for_cell(
cloud: S2Cloud,
cell_id: impl Into<String>,
) -> Result<Self, InvalidUri>
pub fn for_cell( cloud: S2Cloud, cell_id: impl Into<String>, ) -> Result<Self, InvalidUri>
Get S2 endpoints for the specified cell.
Sourcepub fn from_env() -> Result<Self, String>
pub fn from_env() -> Result<Self, String>
Get S2 endpoints from environment variables.
The following environment variables are used:
S2_CLOUD
: Valid S2 cloud name. Defaults to AWS.S2_ACCOUNT_ENDPOINT
: Overrides the account endpoint.S2_BASIN_ENDPOINT
: Overrides the basin endpoint. The prefix"{basin}."
indicates the basin endpoint isParentZone
elseDirect
.
Trait Implementations§
Source§impl Clone for S2Endpoints
impl Clone for S2Endpoints
Source§fn clone(&self) -> S2Endpoints
fn clone(&self) -> S2Endpoints
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 moreAuto Trait Implementations§
impl !Freeze for S2Endpoints
impl RefUnwindSafe for S2Endpoints
impl Send for S2Endpoints
impl Sync for S2Endpoints
impl Unpin for S2Endpoints
impl UnwindSafe for S2Endpoints
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request