Projects

Struct Projects 

Source
pub struct Projects { /* private fields */ }

Implementations§

Source§

impl Projects

Source

pub fn new(client: &Client) -> Self

Source

pub fn list( &self, search: Option<&str>, limit: Option<i64>, offset: Option<i64>, cursor: Option<&str>, cursor_direction: Option<&str>, order_type: Option<&str>, ) -> Result<ProjectList, AppwriteException>

Source

pub fn create( &self, project_id: &str, name: &str, team_id: &str, description: Option<&str>, logo: Option<&str>, url: Option<&str>, legal_name: Option<&str>, legal_country: Option<&str>, legal_state: Option<&str>, legal_city: Option<&str>, legal_address: Option<&str>, legal_tax_id: Option<&str>, ) -> Result<Project, AppwriteException>

Source

pub fn get(&self, project_id: &str) -> Result<Project, AppwriteException>

Source

pub fn update( &self, project_id: &str, name: &str, description: Option<&str>, logo: Option<&str>, url: Option<&str>, legal_name: Option<&str>, legal_country: Option<&str>, legal_state: Option<&str>, legal_city: Option<&str>, legal_address: Option<&str>, legal_tax_id: Option<&str>, ) -> Result<Project, AppwriteException>

Source

pub fn delete( &self, project_id: &str, password: &str, ) -> Result<Value, AppwriteException>

Source

pub fn update_auth_limit( &self, project_id: &str, limit: i64, ) -> Result<Project, AppwriteException>

Source

pub fn update_auth_status( &self, project_id: &str, method: &str, status: bool, ) -> Result<Project, AppwriteException>

Source

pub fn list_domains( &self, project_id: &str, ) -> Result<DomainList, AppwriteException>

Source

pub fn create_domain( &self, project_id: &str, domain: &str, ) -> Result<Domain, AppwriteException>

Source

pub fn get_domain( &self, project_id: &str, domain_id: &str, ) -> Result<Domain, AppwriteException>

Source

pub fn delete_domain( &self, project_id: &str, domain_id: &str, ) -> Result<Value, AppwriteException>

Source

pub fn update_domain_verification( &self, project_id: &str, domain_id: &str, ) -> Result<Domain, AppwriteException>

Source

pub fn list_keys(&self, project_id: &str) -> Result<KeyList, AppwriteException>

Source

pub fn create_key( &self, project_id: &str, name: &str, scopes: &[&str], ) -> Result<Key, AppwriteException>

Source

pub fn get_key( &self, project_id: &str, key_id: &str, ) -> Result<Key, AppwriteException>

Source

pub fn update_key( &self, project_id: &str, key_id: &str, name: &str, scopes: &[&str], ) -> Result<Key, AppwriteException>

Source

pub fn delete_key( &self, project_id: &str, key_id: &str, ) -> Result<Value, AppwriteException>

Source

pub fn update_o_auth2( &self, project_id: &str, provider: &str, app_id: Option<&str>, secret: Option<&str>, ) -> Result<Project, AppwriteException>

Source

pub fn list_platforms( &self, project_id: &str, ) -> Result<PlatformList, AppwriteException>

Source

pub fn create_platform( &self, project_id: &str, xtype: &str, name: &str, key: Option<&str>, store: Option<&str>, hostname: Option<&str>, ) -> Result<Platform, AppwriteException>

Source

pub fn get_platform( &self, project_id: &str, platform_id: &str, ) -> Result<Platform, AppwriteException>

Source

pub fn update_platform( &self, project_id: &str, platform_id: &str, name: &str, key: Option<&str>, store: Option<&str>, hostname: Option<&str>, ) -> Result<Platform, AppwriteException>

Source

pub fn delete_platform( &self, project_id: &str, platform_id: &str, ) -> Result<Value, AppwriteException>

Source

pub fn update_service_status( &self, project_id: &str, service: &str, status: bool, ) -> Result<Project, AppwriteException>

Source

pub fn get_usage( &self, project_id: &str, range: Option<&str>, ) -> Result<UsageProject, AppwriteException>

Source

pub fn list_webhooks( &self, project_id: &str, ) -> Result<WebhookList, AppwriteException>

Source

pub fn create_webhook( &self, project_id: &str, name: &str, events: &[&str], url: &str, security: bool, http_user: Option<&str>, http_pass: Option<&str>, ) -> Result<Webhook, AppwriteException>

Source

pub fn get_webhook( &self, project_id: &str, webhook_id: &str, ) -> Result<Webhook, AppwriteException>

Source

pub fn update_webhook( &self, project_id: &str, webhook_id: &str, name: &str, events: &[&str], url: &str, security: bool, http_user: Option<&str>, http_pass: Option<&str>, ) -> Result<Webhook, AppwriteException>

Source

pub fn delete_webhook( &self, project_id: &str, webhook_id: &str, ) -> Result<Value, AppwriteException>

Trait Implementations§

Source§

impl Clone for Projects

Source§

fn clone(&self) -> Projects

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,