pub struct ConnectResponse {
pub backend_id: BackendName,
pub spawned: bool,
pub status: BackendStatus,
pub token: BearerToken,
pub url: String,
pub subdomain: Option<Subdomain>,
pub secret_token: Option<SecretToken>,
pub status_url: String,
pub drone: Option<DroneName>,
}
Fields§
§backend_id: BackendName
§spawned: bool
Whether the backend is a new one spawned due to the request.
status: BackendStatus
§token: BearerToken
§url: String
§subdomain: Option<Subdomain>
Subdomain associated with the backend, if any.
secret_token: Option<SecretToken>
§status_url: String
§drone: Option<DroneName>
The drone that spawned this backend, if the request resulted in a spawn.
Implementations§
Source§impl ConnectResponse
impl ConnectResponse
pub fn new( backend_id: BackendName, cluster: &ClusterName, spawned: bool, status: BackendStatus, token: BearerToken, secret_token: Option<SecretToken>, subdomain: Option<Subdomain>, client: &PlaneClient, drone: Option<DroneName>, ) -> Self
Trait Implementations§
Source§impl Clone for ConnectResponse
impl Clone for ConnectResponse
Source§fn clone(&self) -> ConnectResponse
fn clone(&self) -> ConnectResponse
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 ConnectResponse
impl Debug for ConnectResponse
Source§impl<'de> Deserialize<'de> for ConnectResponse
impl<'de> Deserialize<'de> for ConnectResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ConnectResponse
impl RefUnwindSafe for ConnectResponse
impl Send for ConnectResponse
impl Sync for ConnectResponse
impl Unpin for ConnectResponse
impl UnwindSafe for ConnectResponse
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