pub struct S2Endpoints {
pub account: Authority,
pub basin: BasinEndpoint,
}This crate has been renamed to s2-sdk. Please update your Cargo.toml to use s2-sdk instead.
Expand description
Endpoints for the S2 environment.
You can find the S2 endpoints in our documentation.
Fields§
§account: AuthorityThis crate has been renamed to s2-sdk. Please update your Cargo.toml to use s2-sdk instead.
Used by AccountService requests.
basin: BasinEndpointThis crate has been renamed to s2-sdk. Please update your Cargo.toml to use s2-sdk instead.
Used by BasinService and StreamService requests.
Implementations§
Source§impl S2Endpoints
impl S2Endpoints
Sourcepub fn for_cloud(cloud: S2Cloud) -> Self
👎Deprecated since 0.21.1: This crate has been renamed to s2-sdk. Please update your Cargo.toml to use s2-sdk instead.
pub fn for_cloud(cloud: S2Cloud) -> Self
This crate has been renamed to s2-sdk. Please update your Cargo.toml to use s2-sdk instead.
Get S2 endpoints for the specified cloud.
Sourcepub fn for_cell(
cloud: S2Cloud,
cell_id: impl Into<String>,
) -> Result<Self, InvalidUri>
👎Deprecated since 0.21.1: This crate has been renamed to s2-sdk. Please update your Cargo.toml to use s2-sdk instead.
pub fn for_cell( cloud: S2Cloud, cell_id: impl Into<String>, ) -> Result<Self, InvalidUri>
This crate has been renamed to s2-sdk. Please update your Cargo.toml to use s2-sdk instead.
Get S2 endpoints for the specified cell.
Sourcepub fn from_env() -> Result<Self, String>
👎Deprecated since 0.21.1: This crate has been renamed to s2-sdk. Please update your Cargo.toml to use s2-sdk instead.
pub fn from_env() -> Result<Self, String>
This crate has been renamed to s2-sdk. Please update your Cargo.toml to use s2-sdk instead.
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 isParentZoneelseDirect.
Trait Implementations§
Source§impl Clone for S2Endpoints
impl Clone for S2Endpoints
Source§fn clone(&self) -> S2Endpoints
fn clone(&self) -> S2Endpoints
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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 UnsafeUnpin 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
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>
T in a tonic::Request