pub struct CloudServer {
pub id: String,
pub name: Option<String>,
pub url: String,
pub port: Option<u16>,
pub local: Option<String>,
pub direct: Option<ServerDirect>,
pub domain: Option<String>,
pub member: Option<bool>,
pub uid: Option<String>,
}Expand description
A server of the user’s list (TS IServer).
Fields§
§id: String§name: Option<String>§url: StringThe custom domain, or empty: there is no fixed public name otherwise.
port: Option<u16>With domain: its public port (absent means 443).
local: Option<String>§direct: Option<ServerDirect>§domain: Option<String>Custom domain served over HTTPS by the server’s own reverse proxy.
member: Option<bool>Owner or member. Some(false): the server is only saved in the list.
uid: Option<String>The id of the user who registered it. The cloud gives it only to that user.
Implementations§
Source§impl CloudServer
impl CloudServer
Sourcepub fn owned_by(&self, user_id: &str) -> bool
pub fn owned_by(&self, user_id: &str) -> bool
Whether user_id registered the server: only they may delete it
(CloudClient::delete_server).
Trait Implementations§
Source§impl Clone for CloudServer
impl Clone for CloudServer
Source§impl Debug for CloudServer
impl Debug for CloudServer
Source§impl<'de> Deserialize<'de> for CloudServer
impl<'de> Deserialize<'de> for CloudServer
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
impl Eq for CloudServer
Source§impl PartialEq for CloudServer
impl PartialEq for CloudServer
Source§impl Serialize for CloudServer
impl Serialize for CloudServer
impl StructuralPartialEq for CloudServer
Auto Trait Implementations§
impl Forget for CloudServer
impl Freeze for CloudServer
impl Move for CloudServer
impl RefUnwindSafe for CloudServer
impl Send for CloudServerwhere
RawVecInner: Send,
impl Sync for CloudServerwhere
RawVecInner: Sync,
impl Unpin for CloudServer
impl UnsafeUnpin for CloudServerwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for CloudServerwhere
RawVecInner: UnwindSafe,
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.